Skip to content

Commit d921fbd

Browse files
committed
t/lib-gettext:test installed git-sh-i18n if GIT_TEST_INSTALLED is set
It makes very, very little sense to test the built git-sh-i18n when the user asked specifically to test another one. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8e6bf45 commit d921fbd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

t/lib-gettext.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ GIT_TEXTDOMAINDIR="$GIT_BUILD_DIR/po/build/locale"
1010
GIT_PO_PATH="$GIT_BUILD_DIR/po"
1111
export GIT_TEXTDOMAINDIR GIT_PO_PATH
1212

13-
. "$GIT_BUILD_DIR"/git-sh-i18n
13+
if test -n "$GIT_TEST_INSTALLED"
14+
then
15+
. "$(git --exec-path)"/git-sh-i18n
16+
else
17+
. "$GIT_BUILD_DIR"/git-sh-i18n
18+
fi
1419

1520
if test_have_prereq GETTEXT && ! test_have_prereq GETTEXT_POISON
1621
then

0 commit comments

Comments
 (0)