Skip to content

Commit

Permalink
difftool: remove explicit change of PATH
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
thenigan authored and gitster committed Mar 23, 2012
1 parent 2836076 commit db60708
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions git-difftool.perl
Expand Up @@ -13,8 +13,6 @@
use 5.008;
use strict;
use warnings;
use Cwd qw(abs_path);
use File::Basename qw(dirname);
use Getopt::Long qw(:config pass_through);
use Git;

Expand All @@ -33,8 +31,6 @@ sub usage

sub setup_environment
{
my $DIR = abs_path(dirname($0));
$ENV{PATH} = "$DIR:$ENV{PATH}";
$ENV{GIT_PAGER} = '';
$ENV{GIT_EXTERNAL_DIFF} = 'git-difftool--helper';
}
Expand Down

0 comments on commit db60708

Please sign in to comment.