Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Replace zero-length array decls with [].
[gitweb.git]
/
git-fetch-script
diff --git
a/git-fetch-script
b/git-fetch-script
index 24f0a5ec82e7268f6dcb0beefb6dbe0f7f54f463..ea097144f712f9ef1beb0531f1bf945db9485c3f 100755
(executable)
--- 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