submodule summary: do not shift a non-existent positional variable
commitcaa9c3cabe9c2719a340425db5c0968fd3588fc9
authorJeff King <peff@peff.net>
Wed, 3 Mar 2010 22:19:09 +0000 (3 14:19 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Mar 2010 22:33:21 +0000 (3 14:33 -0800)
treee04b4645c5684dc131aadb4ba9e8698662e5aa1b
parent3deea89c5feb0dfdfb99ea752f83497d97a3bdd5
submodule summary: do not shift a non-existent positional variable

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>
git-submodule.sh