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:
Junio C Hamano 2008-08-27 17:16:30 -07:00
commit 8d13caf795

View File

@ -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%/}"
}
#