From: Sverre Rabbelier Date: Sat, 16 Jul 2011 13:03:39 GMT Subject: [PATCH v3 19/23] transport-helper: Use capname for refspec capability too Message-ID: <1310821424-4750-20-git-send-email-srabbelier@gmail.com> In-Reply-To: <1310821424-4750-1-git-send-email-srabbelier@gmail.com> 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 --- Unchanged. transport-helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/transport-helper.c b/transport-helper.c index 0c00be9..0cfc9ae 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) { -- 1.7.5.1.292.g728120