We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bcb477f + f5799e0 commit a059240Copy full SHA for a059240
git-submodule.sh
@@ -491,7 +491,7 @@ cmd_update()
491
# Run fetch only if $sha1 isn't present or it
492
# is not reachable from a ref.
493
(clear_local_git_env; cd "$path" &&
494
- ((rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
+ ( (rev=$(git rev-list -n 1 $sha1 --not --all 2>/dev/null) &&
495
test -z "$rev") || git-fetch)) ||
496
die "Unable to fetch in submodule path '$path'"
497
fi
0 commit comments