Skip to content

Commit f88b9cb

Browse files
committed
gettext tests: export the restored GIT_TEST_GETTEXT_POISON
6cdccfc ("i18n: make GETTEXT_POISON a runtime option", 2018-11-08) made the gettext-poison test a runtime option (which was a good move) and adjusted the test framework so that Git commands we run as part of the framework, as opposed to the ones that are part of the test proper, are not affected by the setting. The original value for the GIT_TEST_GETTEXT_POISON environment variable is saved away in another variable and gets unset, and then later the saved value is restored to the environment variable. But the code forgot to export the variable again, which is necessary to restore the "export" bit that was lost when the variable was unset. Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0d0ac38 commit f88b9cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/test-lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1131,6 +1131,7 @@ test -z "$NO_GETTEXT" && test_set_prereq GETTEXT
11311131
if test -n "$GIT_TEST_GETTEXT_POISON_ORIG"
11321132
then
11331133
GIT_TEST_GETTEXT_POISON=$GIT_TEST_GETTEXT_POISON_ORIG
1134+
export GIT_TEST_GETTEXT_POISON
11341135
unset GIT_TEST_GETTEXT_POISON_ORIG
11351136
fi
11361137

0 commit comments

Comments
 (0)