git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git-submodule: a small fix
@ 2011-09-26 22:00 Roy Liu
  2011-09-27  3:22 ` Andrew Ardill
  0 siblings, 1 reply; 3+ messages in thread
From: Roy Liu @ 2011-09-26 22:00 UTC (permalink / raw)
  To: git

In git-submodule.sh, the "url" variable may contain a stale value from
the previous loop iteration, so clear it.

--- git-submodule.sh.orig   2011-09-26 17:50:45.000000000 -0400
+++ git-submodule.sh    2011-09-26 17:51:18.000000000 -0400
@@ -370,6 +370,8 @@
           esac
           git config submodule."$name".url "$url" ||
           die "Failed to register url for submodule path '$path'"
+        else
+            url=""
       fi

       # Copy "update" setting when it is not set yet

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-27  7:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 22:00 [PATCH] git-submodule: a small fix Roy Liu
2011-09-27  3:22 ` Andrew Ardill
2011-09-27  7:24   ` Jens Lehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).