summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a515ebe)
raw | patch | inline | side by side (parent: a515ebe)
author | Sverre Rabbelier <srabbelier@gmail.com> | |
Sat, 16 Jul 2011 13:03:41 +0000 (15:03 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 19 Jul 2011 18:17:48 +0000 (11:17 -0700) |
Remote helpers do not support deleting refs by means of the 'export'
command sincethe fast-import protocol does not support it.
Check explicitly for deleted refs and die early.
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
command sincethe fast-import protocol does not support it.
Check explicitly for deleted refs and die early.
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c | patch | blob | history |
diff --git a/transport-helper.c b/transport-helper.c
index 74c3122df1835c45a6b621205fb18b4fc89af366..4eab844d4abfa29ce53b6245a5821ee7be03641b 100644 (file)
--- a/transport-helper.c
+++ b/transport-helper.c
}
free(private);
+ if (ref->deletion) {
+ die("remote-helpers do not support ref deletion");
+ }
+
if (ref->peer_ref)
string_list_append(&revlist_args, ref->peer_ref->name);