Merge branch 'mh/deref-symref-over-helper-transport' into maint
"git fetch" over a remote-helper that cannot respond to "list"
command could not fetch from a symbolic reference e.g. HEAD.
* mh/deref-symref-over-helper-transport:
transport-helper: do not request symbolic refs to remote helpers
@ -355,7 +355,8 @@ static int fetch_with_fetch(struct transport *transport,
@@ -355,7 +355,8 @@ static int fetch_with_fetch(struct transport *transport,
continue;
strbuf_addf(&buf, "fetch %s %s\n",
sha1_to_hex(posn->old_sha1), posn->name);
sha1_to_hex(posn->old_sha1),
posn->symref ? posn->symref : posn->name);
}
strbuf_addch(&buf, '\n');
@ -453,7 +454,8 @@ static int fetch_with_import(struct transport *transport,
@@ -453,7 +454,8 @@ static int fetch_with_import(struct transport *transport,
if (posn->status & REF_STATUS_UPTODATE)
continue;
strbuf_addf(&buf, "import %s\n", posn->name);
strbuf_addf(&buf, "import %s\n",
posn->symref ? posn->symref : posn->name);
sendline(data, &buf);
strbuf_reset(&buf);
}
@ -486,14 +488,15 @@ static int fetch_with_import(struct transport *transport,
@@ -486,14 +488,15 @@ static int fetch_with_import(struct transport *transport,