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

master
Marc Cornellà 5 years ago
parent 596cef84c7
commit ef3a85cd42
No known key found for this signature in database
GPG Key ID: 314585E776A9C1B
  1. 4
      plugins/svn-fast-info/svn-fast-info.plugin.zsh

@ -36,7 +36,9 @@ function svn_repo_need_upgrade() {
}
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() {

Loading…
Cancel
Save