Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
e2f76235
Commit
e2f76235
authored
May 03, 2012
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/svn/svn.plugin.zsh
View file @
e2f76235
...
...
@@ -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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment