OSDN Git Service

Perly Git: arrange include path settings properly.
authorJunio C Hamano <junkio@cox.net>
Wed, 28 Jun 2006 10:17:07 +0000 (03:17 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 3 Jul 2006 00:14:43 +0000 (17:14 -0700)
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>
git-fmt-merge-msg.perl
git-mv.perl

index e8fad02..1b23fa1 100755 (executable)
@@ -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);
index f1bde43..a604896 100755 (executable)
@@ -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;