summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMat Gadd <mgadd@names.co.uk>2012-05-03 13:03:23 +0100
committerMat Gadd <mgadd@names.co.uk>2012-05-03 13:03:23 +0100
commite2f7623534054645e849db42a0030a1642e5ba97 (patch)
tree91c81e84e253f310d28515497339b29ee9fcc9b4
parent1120f973054836eeb53750f57d69fbec41a340dc (diff)
downloadzsh-e2f7623534054645e849db42a0030a1642e5ba97.tar.gz
zsh-e2f7623534054645e849db42a0030a1642e5ba97.tar.bz2
zsh-e2f7623534054645e849db42a0030a1642e5ba97.zip
Don't drop everything after a trailing slash, as this breaks standard svn branches:
^/branches/featurename ^/releases/Release-vx.y ^/trunk
-rw-r--r--plugins/svn/svn.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
index e2cf96ca3..4d5bfb8dd 100644
--- a/plugins/svn/svn.plugin.zsh
+++ b/plugins/svn/svn.plugin.zsh
@@ -16,7 +16,7 @@ function svn_get_repo_name {
if [ $(in_svn) ]; then
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
}