{"thread":{"id":"47196","subject":"[PATCH] rebase: fix stderr redirect in apply_autostash()","startedAt":"2017-11-13T21:20:15Z","lastAt":"2017-11-13T21:20:15Z","messageCount":1,"participants":["Todd Zullinger"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"332449","messageId":"20171113212009.26835-1-tmz@pobox.com","threadId":"47196","inReplyTo":null,"subject":"[PATCH] rebase: fix stderr redirect in apply_autostash()","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2017-11-13T21:20:09Z","receivedAt":"2017-11-13T21:20:15Z","isPatch":true,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"The intention is to ignore all output from the 'git stash apply' call.\nAdjust the order of the redirection to ensure that both stdout and\nstderr are redirected to /dev/null.\n\nSigned-off-by: Todd Zullinger <tmz@pobox.com>\n---\n git-rebase.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/git-rebase.sh b/git-rebase.sh\nindex 6344e8d5e3..aabbf6b69e 100755\n--- a/git-rebase.sh\n+++ b/git-rebase.sh\n@@ -166,7 +166,7 @@ apply_autostash () {\n \tif test -f \"$state_dir/autostash\"\n \tthen\n \t\tstash_sha1=$(cat \"$state_dir/autostash\")\n-\t\tif git stash apply $stash_sha1 2>&1 >/dev/null\n+\t\tif git stash apply $stash_sha1 >/dev/null 2>&1\n \t\tthen\n \t\t\techo \"$(gettext 'Applied autostash.')\" >&2\n \t\telse\n-- \n2.15.0\n\n"}]}