mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-16 21:46:45 +08:00
Don't drop everything after a trailing slash, as this breaks standard svn branches:
^/branches/featurename ^/releases/Release-vx.y ^/trunk
This commit is contained in:
1 parent
1120f97305
commit
e2f7623534
1 file changed
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user