From: W. Trevor King Date: Mon, 26 Nov 2012 21:00:19 GMT Subject: [PATCH v4 4/4] Hack fix for 'submodule update does not fetch already present commits' Message-ID: <30459164cc221165a20cd4a54daac76ddb101269.1353962698.git.wking@tremily.us> In-Reply-To: From: "W. Trevor King" --- git-submodule.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-submodule.sh b/git-submodule.sh index 28eb4b1..f4a681c 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. -- 1.8.0.3.g95edff1.dirty