Re: [PATCH 6/6] submodule update: Don't fetch when the submodule commit is already present
Jens Lehmann <Jens.Lehmann@web.de> writes:
Show 10 quoted lines
> diff --git a/git-submodule.sh b/git-submodule.sh
> index 8b90589..ea49760 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -465,7 +465,7 @@ cmd_update()
> if test -z "$nofetch"
> then
> (clear_local_git_env; cd "$path" &&
> - git-fetch) ||
> + (git rev-parse --verify $sha1 >/dev/null || git-fetch)) ||
Exactly the same comment as the one for [5/6] applies here.