Allow helper to map private ref names into normal names
This allows a helper to say that, when it handles "import
refs/heads/topic", the script it outputs will actually write to
refs/svn/origin/branches/topic; therefore, transport-helper should
read it from the latter location after git-fast-import completes.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Daniel Barkalow15 years agocommitted byJunio C Hamano
@ -72,6 +94,9 @@ static int disconnect_helper(struct transport *transport)
@@ -72,6 +94,9 @@ static int disconnect_helper(struct transport *transport)
static int release_helper(struct transport *transport)
{
struct helper_data *data = transport->data;
free_refspec(data->refspec_nr, data->refspecs);
data->refspecs = NULL;
disconnect_helper(transport);
free(transport->data);
return 0;
@ -119,6 +144,7 @@ static int fetch_with_import(struct transport *transport,
@@ -119,6 +144,7 @@ static int fetch_with_import(struct transport *transport,
@ -139,10 +165,16 @@ static int fetch_with_import(struct transport *transport,
@@ -139,10 +165,16 @@ static int fetch_with_import(struct transport *transport,