diff options
| author | Junio C Hamano <junkio@cox.net> | 2005-08-30 01:10:10 -0700 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-08-30 01:10:10 -0700 |
| commit | b758087a02ebf310cd3c97e7efa77794be8ef410 (patch) | |
| tree | a543e2a458292f28da994f536e555ed9cbba1efe /git-parse-remote-script | |
| parent | Merge refs/heads/master from . (diff) | |
| parent | parse-remote: trivial fix to allow refs/{heads,tags}/ spelled easier. (diff) | |
| download | git-b758087a02ebf310cd3c97e7efa77794be8ef410.tar.gz git-b758087a02ebf310cd3c97e7efa77794be8ef410.zip | |
Merge refs/heads/master from .
Diffstat (limited to 'git-parse-remote-script')
| -rwxr-xr-x | git-parse-remote-script | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-parse-remote-script b/git-parse-remote-script index cf37884256..43b4368034 100755 --- a/git-parse-remote-script +++ b/git-parse-remote-script @@ -81,10 +81,14 @@ canon_refs_list_for_fetch () { local=$(expr "$ref" : '[^:]*:\(.*\)') case "$remote" in '') remote=HEAD ;; + refs/heads/* | refs/tags/*) ;; + heads/* | tags/* ) remote="refs/$remote" ;; *) remote="refs/heads/$remote" ;; esac case "$local" in '') local= ;; + refs/heads/* | refs/tags/*) ;; + heads/* | tags/* ) local="refs/$local" ;; *) local="refs/heads/$local" ;; esac echo "${force}${remote}:${local}" |
