diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-08-27 17:16:30 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-08-27 17:16:30 -0700 |
commit | 8d13caf795902812d44809e2f222fb2334030603 (patch) | |
tree | 6fb2e7360a8878ff675679d9492af2915f0cfc36 /git-submodule.sh | |
parent | 88ab18dfef55a41df2e1f69a8ab3e3ed9f915c31 (diff) | |
parent | 99b120af7081ea9eb03a5f2a605d2bab771cf634 (diff) | |
download | git-8d13caf795902812d44809e2f222fb2334030603.tar.gz git-8d13caf795902812d44809e2f222fb2334030603.tar.xz |
Merge branch 'ml/submodule'
* ml/submodule:
git-submodule.sh - Remove trailing / from URL if found
git-submodule.sh - Remove trailing / from URL if found
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 4a95035d8..1c39b593a 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -35,6 +35,7 @@ resolve_relative_url () remoteurl=$(git config "remote.$remote.url") || die "remote ($remote) does not have a url defined in .git/config" url="$1" + remoteurl=${remoteurl%/} while test -n "$url" do case "$url" in @@ -49,7 +50,7 @@ resolve_relative_url () break;; esac done - echo "$remoteurl/$url" + echo "$remoteurl/${url%/}" } # |