X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-submodule.sh;h=2dd372a21d82a109774e80e014f9959485202b3e;hb=fe90c93bee8fc72240ccbaf9480f80ed6766cd1c;hp=f21d0bfce7020edeaed8c0066760e5f55e7facb9;hpb=f3604763ba0355f628cf815cfaf4fec20d46e958;p=git.git diff --git a/git-submodule.sh b/git-submodule.sh index f21d0bfce..2dd372a21 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -559,7 +559,9 @@ cmd_summary() { test $# = 0 || shift elif test -z "$1" -o "$1" = "HEAD" then - return + # before the first commit: compare with an empty tree + head=$(git hash-object -w -t tree --stdin