fix(svn-fast-info): URL-decode svn branch name

parent 596cef84
...@@ -36,7 +36,9 @@ function svn_repo_need_upgrade() { ...@@ -36,7 +36,9 @@ function svn_repo_need_upgrade() {
} }
function svn_current_branch_name() { function svn_current_branch_name() {
grep '^URL:' <<< "${1:-$(svn info 2> /dev/null)}" | egrep -o '(tags|branches)/[^/]+|trunk' omz_urldecode "$(
command grep '^URL:' <<< "${1:-$(svn info 2>/dev/null)}" | command grep -Eo '(tags|branches)/[^/]+|trunk'
)"
} }
function svn_repo_root_name() { function svn_repo_root_name() {
......
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