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>
}
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);