diff --git a/git-fmt-merge-msg.perl b/git-fmt-merge-msg.perl index e8fad02e75..1b23fa150b 100755 --- a/git-fmt-merge-msg.perl +++ b/git-fmt-merge-msg.perl @@ -5,7 +5,7 @@ # Read .git/FETCH_HEAD and make a human readable merge message # by grouping branches and tags together to form a single line. -unshift @INC, '@@INSTLIBDIR@@'; +BEGIN { unshift @INC, '@@INSTLIBDIR@@'; } use strict; use Git; use Error qw(:try); diff --git a/git-mv.perl b/git-mv.perl index f1bde4307b..a60489617e 100755 --- a/git-mv.perl +++ b/git-mv.perl @@ -6,7 +6,7 @@ # This file is licensed under the GPL v2, or a later version # at the discretion of Linus Torvalds. - +BEGIN { unshift @INC, '@@INSTLIBDIR@@'; } use warnings; use strict; use Getopt::Std;