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

This commit is contained in:
Marc Cornellà 2021-12-16 10:08:25 +01:00
parent 596cef84c7
commit ef3a85cd42
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -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() {