summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea3594e)
raw | patch | inline | side by side (parent: ea3594e)
author | Mark Levedahl <mlevedahl@gmail.com> | |
Wed, 20 Aug 2008 02:18:23 +0000 (22:18 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 21 Aug 2008 06:18:53 +0000 (23:18 -0700) |
git clone does not complain if a trailing '/' is included in the origin
URL, but doing so causes resolution of a submodule's URL relative to the
superproject to fail. Regardless of whether git is changed to remove the
trailing / before recording the URL, we should avoid this issue in
submodule as existing repositories can have this problem.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
URL, but doing so causes resolution of a submodule's URL relative to the
superproject to fail. Regardless of whether git is changed to remove the
trailing / before recording the URL, we should avoid this issue in
submodule as existing repositories can have this problem.
Signed-off-by: Mark Levedahl <mlevedahl@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh | patch | blob | history |
diff --git a/git-submodule.sh b/git-submodule.sh
index b40f876a2ca9fe985cedc622ab28a9f461edc5ab..e4c31fb7dbc732b9e97a43ac3b58b818b35a02ef 100755 (executable)
--- a/git-submodule.sh
+++ b/git-submodule.sh
remote="${remote:-origin}"
remoteurl=$(git config "remote.$remote.url") ||
die "remote ($remote) does not have a url defined in .git/config"
- url="$1"
+ url="${1%/}"
while test -n "$url"
do
case "$url" in