X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-fetch-script;h=ea097144f712f9ef1beb0531f1bf945db9485c3f;hb=90a734dc7f37a7bd1f3beec4d33acad559360f6c;hp=24f0a5ec82e7268f6dcb0beefb6dbe0f7f54f463;hpb=f10e0e0b18c8e2e69535e7380fb3c1f9b097cfda;p=git.git diff --git a/git-fetch-script b/git-fetch-script index 24f0a5ec..ea097144 100755 --- a/git-fetch-script +++ b/git-fetch-script @@ -31,6 +31,10 @@ rsync://*) ;; *) head=$(git-fetch-pack "$merge_repo" "$merge_head") + if h=`expr "$head" : '\([^ ][^ ]*\) '` + then + head=$h + fi ;; esac || exit 1