1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 23:07:55 +01:00

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
This commit is contained in:
Junio C Hamano 2010-03-03 14:50:22 -08:00
commit 66a5eeffff

View file

@ -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