Skip to content

Commit a059240

Browse files
committed
Merge branch 'bc/maint-submodule-fix-parked' into maint
* bc/maint-submodule-fix-parked: git-submodule.sh: separate parens by a space to avoid confusing some shells
2 parents bcb477f + f5799e0 commit a059240

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
@@ -491,7 +491,7 @@ cmd_update()
491491
# Run fetch only if $sha1 isn't present or it
492492
# is not reachable from a ref.
493493
(clear_local_git_env; cd "$path" &&
494-
((rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
494+
( (rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
495495
test -z "$rev") || git-fetch)) ||
496496
die "Unable to fetch in submodule path '$path'"
497497
fi

0 commit comments

Comments
 (0)