git-fetch: Allow fetching the remote HEAD
PATCH 1/1 git-fetch: Allow fetching the remote HEAD
... with:
$ git fetch ${remote} HEADAlso
$ git fetch ${remote} :${localref}worked, but
$ git fetch ${remote} HEAD:{localref}didn't. Now both are equivalent.
Signed-off-by Santi Béjar <[email protected]>
--- git-parse-remote.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-parse-remote.sh +1 -1
@@ -183,7 +183,7 @@ canon_refs_list_for_fetch () { done fi case "$remote" in - '') remote=HEAD ;; + '' | HEAD ) remote=HEAD ;; refs/heads/* | refs/tags/* | refs/remotes/*) ;; heads/* | tags/* | remotes/* ) remote="refs/$remote" ;; *) remote="refs/heads/$remote" ;;
Signature · 1 line
1.5.0.rc2.224.gb3a6
Thanks.