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>
Sverre Rabbelier committed
Jul 16, 2011 at 15:03 UTC
4d2ec306e88b4de5aeb611b18b00139c90d4fa78
1 file changed
+1
-1
transport-helper.c
+1
-1
@@ -181,7 +181,7 @@ static struct child_process *get_helper(struct transport *transport)
181
ALLOC_GROW(refspecs,
182
refspec_nr + 1,
183
refspec_alloc);
184
- refspecs[refspec_nr++] = strdup(buf.buf + strlen("refspec "));
184
+ refspecs[refspec_nr++] = strdup(capname + strlen("refspec "));
185
} else if (!strcmp(capname, "connect")) {
186
data->connect = 1;
187
} else if (mandatory) {