From: "W. Trevor King" <wk...@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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to