Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 6/6] submodule update: Don't fetch when the submodule commit is already present

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:38

Jens Lehmann [off-list ref] writes:
quoted hunk
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help