difftool: remove explicit change of PATH
Adding the script directory to PATH is not needed. The script is located at '$(git --exec-path)', which is already on the PATH. Signed-off-by: Tim Henigan <tim.henigan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tim Henigan committed
Mar 22, 2012 at 15:52 UTC
db607087d0f1256b745b9a878623060d775f1817
1 file changed
-4
git-difftool.perl
-4
@@ -13,8 +13,6 @@
13
use 5.008;
14
use strict;
15
use warnings;
16
-use Cwd qw(abs_path);
17
-use File::Basename qw(dirname);
16
use Getopt::Long qw(:config pass_through);
17
use Git;
18
@@ -33,8 +31,6 @@ USAGE
31
32
sub setup_environment
33
{
36
- my $DIR = abs_path(dirname($0));
37
- $ENV{PATH} = "$DIR:$ENV{PATH}";
34
$ENV{GIT_PAGER} = '';
35
$ENV{GIT_EXTERNAL_DIFF} = 'git-difftool--helper';
36
}