summaryrefslogtreecommitdiff
path: root/git-fmt-merge-msg.perl
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-28 03:17:07 -0700
committerJunio C Hamano <junkio@cox.net>2006-07-02 17:14:43 -0700
commitf1b8fd4abae7910d9227ae019220944e8fac6884 (patch)
tree6a225aed57a923093a2bc97901f0f1a17d1023cf /git-fmt-merge-msg.perl
parentc9093fb38b48dcf09dbf1fb5cbf72e2b1f2c1258 (diff)
downloadgit-f1b8fd4abae7910d9227ae019220944e8fac6884.tar.gz
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>
Diffstat (limited to 'git-fmt-merge-msg.perl')
-rwxr-xr-xgit-fmt-merge-msg.perl2
1 files changed, 1 insertions, 1 deletions
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);