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
This commit is contained in:
@ -491,7 +491,7 @@ cmd_update()
|
|||||||
# Run fetch only if $sha1 isn't present or it
|
# Run fetch only if $sha1 isn't present or it
|
||||||
# is not reachable from a ref.
|
# is not reachable from a ref.
|
||||||
(clear_local_git_env; cd "$path" &&
|
(clear_local_git_env; cd "$path" &&
|
||||||
((rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
|
( (rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
|
||||||
test -z "$rev") || git-fetch)) ||
|
test -z "$rev") || git-fetch)) ||
|
||||||
die "Unable to fetch in submodule path '$path'"
|
die "Unable to fetch in submodule path '$path'"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user