diff options
Diffstat (limited to 'git-fetch-script')
-rwxr-xr-x | git-fetch-script | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git-fetch-script b/git-fetch-script index 24f0a5ec82..ea097144f7 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 |