diff options
author | Mat Gadd <mgadd@names.co.uk> | 2012-05-03 13:03:23 +0100 |
---|---|---|
committer | Mat Gadd <mgadd@names.co.uk> | 2012-05-03 13:03:23 +0100 |
commit | e2f7623534054645e849db42a0030a1642e5ba97 (patch) | |
tree | 91c81e84e253f310d28515497339b29ee9fcc9b4 /plugins/svn | |
parent | 1120f973054836eeb53750f57d69fbec41a340dc (diff) | |
download | zsh-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
Diffstat (limited to 'plugins/svn')
-rw-r--r-- | plugins/svn/svn.plugin.zsh | 2 |
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 } |