ef3a85cd42c671217a0bcb58685484a5a5a0ada4

Author
Marc Cornellà <hello@mcornella.com>
Committer
Marc Cornellà <hello@mcornella.com>
Date

Message

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

Diff

 1diff --git a/plugins/svn-fast-info/svn-fast-info.plugin.zsh b/plugins/svn-fast-info/svn-fast-info.plugin.zsh
 2index f2f449f79cd33a9beaa469809274b17654c7d60b..05f0ac67d2652a34cc9aef9a6b57a08fb57d428e 100644
 3--- a/plugins/svn-fast-info/svn-fast-info.plugin.zsh
 4+++ b/plugins/svn-fast-info/svn-fast-info.plugin.zsh
 5@@ -36,7 +36,9 @@ function svn_repo_need_upgrade() {
 6 }
 7 
 8 function svn_current_branch_name() {
 9-  grep '^URL:' <<< "${1:-$(svn info 2> /dev/null)}" | egrep -o '(tags|branches)/[^/]+|trunk'	
10+  omz_urldecode "$(
11+    command grep '^URL:' <<< "${1:-$(svn info 2>/dev/null)}" | command grep -Eo '(tags|branches)/[^/]+|trunk'
12+  )"
13 }
14 
15 function svn_repo_root_name() {