@matheusbsbs / matheus-bagliano / commits / f1b8fd4aba
Fork 0

Perly Git: arrange include path settings properly.

Before "use Git" takes effect, we would need to set up the Perl library path to point at the local installation location. So that instruction needs to be in BEGIN{} block. Pointed out and fixed by Pavel Roskin. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Jun 28, 2006 at 03:17 UTC f1b8fd4abae7910d9227ae019220944e8fac6884
2 files changed +2 -2
git-fmt-merge-msg.perl
+1 -1
@@ -5,7 +5,7 @@
5 # Read .git/FETCH_HEAD and make a human readable merge message
6 # by grouping branches and tags together to form a single line.
7
8 -unshift @INC, '@@INSTLIBDIR@@';
8 +BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
9 use strict;
10 use Git;
11 use Error qw(:try);
git-mv.perl
+1 -1
@@ -6,7 +6,7 @@
6 # This file is licensed under the GPL v2, or a later version
7 # at the discretion of Linus Torvalds.
8
9 -
9 +BEGIN { unshift @INC, '@@INSTLIBDIR@@'; }
10 use warnings;
11 use strict;
12 use Getopt::Std;