Skip to content

Commit 4d2ec30

Browse files
SRabbeliergitster
authored andcommitted
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 <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9504bc9 commit 4d2ec30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport-helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static struct child_process *get_helper(struct transport *transport)
181181
ALLOC_GROW(refspecs,
182182
refspec_nr + 1,
183183
refspec_alloc);
184-
refspecs[refspec_nr++] = strdup(buf.buf + strlen("refspec "));
184+
refspecs[refspec_nr++] = strdup(capname + strlen("refspec "));
185185
} else if (!strcmp(capname, "connect")) {
186186
data->connect = 1;
187187
} else if (mandatory) {

0 commit comments

Comments
 (0)