diff options
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 9aa57dd6f7..5a9d3c0b30 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 |