[PATCH v4 4/4] Hack fix for 'submodule update does not fetch already present commits'
From: "W. Trevor King" <wking@tremily.us>
---
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