Also properly use capname in the refspec capability. Signed-off-by: Sverre Rabbelier <srabbelier@xxxxxxxxx> --- Unchanged from my original series. transport-helper.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transport-helper.c b/transport-helper.c index f78b670..ddf0ffa 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -171,10 +171,10 @@ 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 (!strcmp(buf.buf, "gitdir")) { + } else if (!strcmp(capname, "gitdir")) { struct strbuf gitdir = STRBUF_INIT; strbuf_addf(&gitdir, "gitdir %s\n", get_git_dir()); sendline(data, &gitdir); -- 1.7.5.1.292.g728120 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html