aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-submodule.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 9aa57dd6f..5a9d3c0b3 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -561,6 +561,7 @@ cmd_summary() {
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