[PATCH] Use $DESTDIR instead of $dest
[git.git] / git-fetch-script
index 24f0a5e..ea09714 100755 (executable)
@@ -31,6 +31,10 @@ rsync://*)
        ;;
 *)
        head=$(git-fetch-pack "$merge_repo" "$merge_head")
+       if h=`expr "$head" : '\([^ ][^ ]*\) '`
+       then
+           head=$h
+       fi
        ;;
 esac || exit 1