Skip to content

Commit

Permalink
Merge branch 'bc/maint-submodule-fix-parked' into maint
Browse files Browse the repository at this point in the history
* bc/maint-submodule-fix-parked:
  git-submodule.sh: separate parens by a space to avoid confusing some shells
  • Loading branch information
Junio C Hamano committed May 30, 2011
2 parents bcb477f + f5799e0 commit a059240
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ cmd_update()
# Run fetch only if $sha1 isn't present or it
# is not reachable from a ref.
(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)) ||
die "Unable to fetch in submodule path '$path'"
fi
Expand Down

0 comments on commit a059240

Please sign in to comment.