Merge branch 'ml/submodule'
* ml/submodule: git-submodule.sh - Remove trailing / from URL if found git-submodule.sh - Remove trailing / from URL if found
This commit is contained in:
commit
8d13caf795
@ -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%/}"
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user