Thread (18 messages) 18 messages, 2 authors, 2016-06-15
STALE3756d

Revision v1 of 4 in this series.

Revisions (4)
  1. v1 current
  2. v3 [diff vs current]
  3. v4 [diff vs current]
  4. v7 [diff vs current]

[PATCH 1/9] transport-helper: add 'force' to 'export' helpers

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:58:33
Subsystem: the rest · Maintainer: Linus Torvalds

Otherwise they cannot know when to force the push or not (other than
hacks).

Signed-off-by: Felipe Contreras <redacted>
---
 transport-helper.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/transport-helper.c b/transport-helper.c
index 63cabc3..62051a6 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -814,6 +814,9 @@ static int push_refs_with_export(struct transport *transport,
 			die("helper %s does not support dry-run", data->name);
 	}
 
+	if (flags & TRANSPORT_PUSH_FORCE)
+		set_helper_option(transport, "force", "true");
+
 	helper = get_helper(transport);
 
 	write_constant(helper->in, "export\n");
-- 
1.8.4-fc
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help