From 105fe3e457fba1dc005aa649410ec3962624232a Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Sat, 16 Jul 2011 15:03:41 +0200 Subject: [PATCH] transport-helper: die early on encountering deleted refs 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 Acked-by: Jeff King Signed-off-by: Junio C Hamano --- transport-helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport-helper.c b/transport-helper.c index 74c3122df..4eab844d4 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -746,6 +746,10 @@ static int push_refs_with_export(struct transport *transport, } 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); -- 2.26.2