Skip to content

Commit 66a5eef

Browse files
committed
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
2 parents a75bab5 + caa9c3c commit 66a5eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-submodule.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ cmd_summary() {
556556
if rev=$(git rev-parse -q --verify --default HEAD ${1+"$1"})
557557
then
558558
head=$rev
559-
shift
559+
test $# = 0 || shift
560560
elif test -z "$1" -o "$1" = "HEAD"
561561
then
562562
return

0 commit comments

Comments
 (0)