浏览代码

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

Marc Cornellà 2 年之前
父节点
当前提交
ef3a85cd42
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      plugins/svn-fast-info/svn-fast-info.plugin.zsh

+ 3 - 1
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() {