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 | 1a965f3363ec03e608560d6ada18159a7721310f (diff) | |
| parent | 61f01a5b773915402da37a34e706db56fe90b776 (diff) | |
| download | git-b758087a02ebf310cd3c97e7efa77794be8ef410.tar.xz | |
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}" |
