diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-03 14:50:22 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-03 14:50:22 -0800 |
commit | 66a5eeffff3229b2475173adfe57e6e91a15b2c8 (patch) | |
tree | 151b3a3e02acf0876a47dcee159d4aa6463c1c06 | |
parent | a75bab51aef5284058afdd04b51923d03dfce5b2 (diff) | |
parent | caa9c3cabe9c2719a340425db5c0968fd3588fc9 (diff) | |
download | git-66a5eeffff3229b2475173adfe57e6e91a15b2c8.tar.gz git-66a5eeffff3229b2475173adfe57e6e91a15b2c8.tar.xz |
Merge branch 'jh/maint-submodule-status-in-void' (early part)
* 'jh/maint-submodule-status-in-void' (early part):
submodule summary: do not shift a non-existent positional variable
-rwxr-xr-x | git-submodule.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 5869c00f2..383dc4511 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -556,7 +556,7 @@ cmd_summary() { 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 |