From: W. Trevor King Date: Mon, 26 Nov 2012 20:42:04 +0000 (-0500) Subject: Hack fix for 'submodule update does not fetch already present commits' X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=refs%2Fheads%2Fwtk%2Fsubmodule.name.branch-v4;p=git.git Hack fix for 'submodule update does not fetch already present commits' --- diff --git a/git-submodule.sh b/git-submodule.sh index 28eb4b1a6..f4a681c58 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -640,7 +640,7 @@ Maybe you want to use 'update --init'?")" subforce="-f" fi - if test -z "$nofetch" + if test -z "$nofetch" -a "$subsha1" != "$sha1" then # Run fetch only if $sha1 isn't present or it # is not reachable from a ref.