summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3deea89)
raw | patch | inline | side by side (parent: 3deea89)
author | Jeff King <peff@peff.net> | |
Wed, 3 Mar 2010 22:19:09 +0000 (14:19 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Mar 2010 22:33:21 +0000 (14:33 -0800) |
When "git submodule summary" is run without any argument, we default to
compare the state of index with the HEAD, but tried to shift out $1 that
does not exist (and worse yet, we didn't use it).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compare the state of index with the HEAD, but tried to shift out $1 that
does not exist (and worse yet, we didn't use it).
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | patch | blob | history |
diff --git a/git-submodule.sh b/git-submodule.sh
index 5869c00f2d5db4d8316002267a8605096357d5ed..383dc451191fef4e078e9f46aaf3fdb3190ebc9a 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
if rev=$(git rev-parse -q --verify --default HEAD ${1+"$1"})
then
head=$rev
- shift
+ test $# = 0 || shift
elif test -z "$1" -o "$1" = "HEAD"
then
return