Skip to content

Commit 04f673d

Browse files
lmmarsanogitster
authored andcommitted
git-credential-netrc: use in-tree Git.pm for tests
The netrc test.pl script calls git-credential-netrc which imports the Git module. Pass GITPERLLIB to git-credential-netrc via PERL5LIB to ensure the in-tree Git module is used for testing. Signed-off-by: Luis Marsano <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 94a2bb5 commit 04f673d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/credential/netrc/t-git-credential-netrc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
# The external test will outputs its own plan
2424
test_external_has_tap=1
2525

26+
export PERL5LIB="$GITPERLLIB"
2627
test_external \
2728
'git-credential-netrc' \
28-
perl "$TEST_DIRECTORY"/../contrib/credential/netrc/test.pl
29+
perl "$GIT_BUILD_DIR"/contrib/credential/netrc/test.pl
2930

3031
test_done
3132
)

contrib/credential/netrc/test.pl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/perl
2-
use lib (split(/:/, $ENV{GITPERLLIB}));
32

43
use warnings;
54
use strict;

0 commit comments

Comments
 (0)