Skip to content

Commit

Permalink
Merge branch 'ml/submodule'
Browse files Browse the repository at this point in the history
* ml/submodule:
  git-submodule.sh - Remove trailing / from URL if found
  git-submodule.sh - Remove trailing / from URL if found
  • Loading branch information
Junio C Hamano committed Aug 28, 2008
2 parents 88ab18d + 99b120a commit 8d13caf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -49,7 +50,7 @@ resolve_relative_url ()
break;;
esac
done
echo "$remoteurl/$url"
echo "$remoteurl/${url%/}"
}

#
Expand Down

0 comments on commit 8d13caf

Please sign in to comment.