浏览代码

fix(svn): fix output order in `svn_dirty_choose` (#10572)

Fabian Günter 2 年之前
父节点
当前提交
71e6d5fde8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      plugins/svn/svn.plugin.zsh

+ 2 - 2
plugins/svn/svn.plugin.zsh

@@ -67,10 +67,10 @@ svn_dirty_choose() {
   root=$(sed -n 's/^Working Copy Root Path: //p' <<< "${1:-$(LANG= svn info 2>/dev/null)}")
   if LANG= svn status "$root" 2>/dev/null | command grep -Eq '^\s*[ACDIM!?L]'; then
     # Grep exits with 0 when "One or more lines were selected", return "dirty".
-    echo $1
+    echo $2
   else
     # Otherwise, no lines were found, or an error occurred. Return clean.
-    echo $2
+    echo $3
   fi
 }