summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorLibravatar Sverre Rabbelier <srabbelier@gmail.com>2011-07-16 15:03:39 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-07-19 11:17:48 -0700
commit4d2ec306e88b4de5aeb611b18b00139c90d4fa78 (patch)
tree3c4949506b2a3ccd7b6f5cbdedeecb5da545c245 /transport-helper.c
parenttransport-helper: change import semantics (diff)
downloadtgif-4d2ec306e88b4de5aeb611b18b00139c90d4fa78.tar.xz
transport-helper: Use capname for refspec capability too
Previously the refspec capability could not be listed as required or their parsing would break. Most likely the reason the second hunk wasn't caught is because the series that added 'refspec' as capability, and the one that added required capabilities were done in parallel. Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 0c00be9dc7..0cfc9ae905 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -181,7 +181,7 @@ static struct child_process *get_helper(struct transport *transport)
ALLOC_GROW(refspecs,
refspec_nr + 1,
refspec_alloc);
- refspecs[refspec_nr++] = strdup(buf.buf + strlen("refspec "));
+ refspecs[refspec_nr++] = strdup(capname + strlen("refspec "));
} else if (!strcmp(capname, "connect")) {
data->connect = 1;
} else if (mandatory) {