diff --git a/git-submodule.sh b/git-submodule.sh
index 9aa57dd6f7c939ec3d50386a039f1640ce2aa929..5a9d3c0b305cc57e45b8f15b0d2c522bb8bb3285 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
then
# before the first commit: compare with an empty tree
head=$(git hash-object -w -t tree --stdin </dev/null)
+ test -z "$1" || shift
else
head="HEAD"
fi