Skip to content

Commit ce73209

Browse files
committed
Merge branch 'tz/redirect-fix' into maint
A few scripts (both in production and tests) incorrectly redirected their error output. These have been corrected. * tz/redirect-fix: rebase: fix stderr redirect in apply_autostash() t/lib-gpg: fix gpgconf stderr redirect to /dev/null
2 parents 0cfcb16 + eadf1c8 commit ce73209

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-rebase.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ apply_autostash () {
166166
if test -f "$state_dir/autostash"
167167
then
168168
stash_sha1=$(cat "$state_dir/autostash")
169-
if git stash apply $stash_sha1 2>&1 >/dev/null
169+
if git stash apply $stash_sha1 >/dev/null 2>&1
170170
then
171171
echo "$(gettext 'Applied autostash.')" >&2
172172
else

t/lib-gpg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ then
3131
chmod 0700 ./gpghome &&
3232
GNUPGHOME="$(pwd)/gpghome" &&
3333
export GNUPGHOME &&
34-
(gpgconf --kill gpg-agent 2>&1 >/dev/null || : ) &&
34+
(gpgconf --kill gpg-agent >/dev/null 2>&1 || : ) &&
3535
gpg --homedir "${GNUPGHOME}" 2>/dev/null --import \
3636
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
3737
gpg --homedir "${GNUPGHOME}" 2>/dev/null --import-ownertrust \

0 commit comments

Comments
 (0)