diff --git a/git-mv.perl b/git-mv.perl
index a60489617e517d02b824f14815c2be61209df6b6..5134b805a5f69afc127f9904161948773c5df41b 100755 (executable)
--- a/git-mv.perl
+++ b/git-mv.perl
# This file is licensed under the GPL v2, or a later version
# at the discretion of Linus Torvalds.
-BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
+BEGIN {
+ unless (exists $ENV{'RUNNING_GIT_TESTS'}) {
+ unshift @INC, '@@INSTLIBDIR@@';
+ }
+}
use warnings;
use strict;
use Getopt::Std;