rebase: fix stderr redirect in apply_autostash()

The intention is to ignore all output from the 'git stash apply' call. Adjust the order of the redirection to ensure that both stdout and stderr are redirected to /dev/null. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Todd Zullinger committed Nov 13, 2017 at 16:20 UTC eadf1c8f454aff0b77202815af7b250320a5f5bf
1 file changed +1 -1
git-rebase.sh
+1 -1
@@ -164,7 +164,7 @@ apply_autostash () {
164 if test -f "$state_dir/autostash"
165 then
166 stash_sha1=$(cat "$state_dir/autostash")
167 - if git stash apply $stash_sha1 2>&1 >/dev/null
167 + if git stash apply $stash_sha1 >/dev/null 2>&1
168 then
169 echo "$(gettext 'Applied autostash.')" >&2
170 else