Commit e2f76235 authored by Mat Gadd's avatar Mat Gadd
Browse files

Don't drop everything after a trailing slash, as this breaks standard svn branches:

^/branches/featurename
^/releases/Release-vx.y
^/trunk
parent 1120f973
...@@ -16,7 +16,7 @@ function svn_get_repo_name { ...@@ -16,7 +16,7 @@ function svn_get_repo_name {
if [ $(in_svn) ]; then if [ $(in_svn) ]; then
svn info | sed -n 's/Repository\ Root:\ .*\///p' | read SVN_ROOT svn info | sed -n 's/Repository\ Root:\ .*\///p' | read SVN_ROOT
svn info | sed -n "s/URL:\ .*$SVN_ROOT\///p" | sed "s/\/.*$//" svn info | sed -n "s/URL:\ .*$SVN_ROOT\///p"
fi fi
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment