Skip to content

Commit eadf1c8

Browse files
tmzullingergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4c180f6 commit eadf1c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-rebase.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ apply_autostash () {
164164
if test -f "$state_dir/autostash"
165165
then
166166
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
168168
then
169169
echo "$(gettext 'Applied autostash.')" >&2
170170
else

0 commit comments

Comments
 (0)