diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-16 10:08:25 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-01-03 13:50:49 +0100 |
commit | ef3a85cd42c671217a0bcb58685484a5a5a0ada4 (patch) | |
tree | 505cb4e40eb06d66a0c41f22e95da9dfd8835b6a | |
parent | 596cef84c75261398fe66f713d97d5ca96130146 (diff) | |
download | zsh-ef3a85cd42c671217a0bcb58685484a5a5a0ada4.tar.gz zsh-ef3a85cd42c671217a0bcb58685484a5a5a0ada4.tar.bz2 zsh-ef3a85cd42c671217a0bcb58685484a5a5a0ada4.zip |
fix(svn-fast-info): URL-decode svn branch name
-rw-r--r-- | plugins/svn-fast-info/svn-fast-info.plugin.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/svn-fast-info/svn-fast-info.plugin.zsh b/plugins/svn-fast-info/svn-fast-info.plugin.zsh index f2f449f79..05f0ac67d 100644 --- a/plugins/svn-fast-info/svn-fast-info.plugin.zsh +++ b/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() { |