1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 08:50:08 +00:00

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