71e6d5fde87be76205e87eed2e1a306a2f3bc5a8

Author
Fabian Günter <n4zroth@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

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

Diff

 1diff --git a/plugins/svn/svn.plugin.zsh b/plugins/svn/svn.plugin.zsh
 2index 9c3b50d16b2bb4642576f61fb6353fb0c68a04f0..e55e5b2dd71d471eb62b38f23c526f7219ddc63b 100644
 3--- a/plugins/svn/svn.plugin.zsh
 4+++ b/plugins/svn/svn.plugin.zsh
 5@@ -67,10 +67,10 @@ svn_dirty_choose() {
 6   root=$(sed -n 's/^Working Copy Root Path: //p' <<< "${1:-$(LANG= svn info 2>/dev/null)}")
 7   if LANG= svn status "$root" 2>/dev/null | command grep -Eq '^\s*[ACDIM!?L]'; then
 8     # Grep exits with 0 when "One or more lines were selected", return "dirty".
 9-    echo $1
10+    echo $2
11   else
12     # Otherwise, no lines were found, or an error occurred. Return clean.
13-    echo $2
14+    echo $3
15   fi
16 }
17