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>
This commit is contained in:
Junio C Hamano 2006-06-28 03:17:07 -07:00
parent c9093fb38b
commit f1b8fd4aba
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;