Permalink
Browse files

(minor) don't keep adding the same thing to $PATH

  • Loading branch information...
1 parent f35db87 commit fd0778e6d61876ed5ef83dfc07f0d795d6d767bd @sitaramc committed Jul 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/Gitolite/Rc.pm
View
2 src/lib/Gitolite/Rc.pm
@@ -91,7 +91,7 @@ do $ENV{G3T_RC} if exists $ENV{G3T_RC} and -r $ENV{G3T_RC};
unshift @INC, "$rc{LOCAL_CODE}/lib" if $rc{LOCAL_CODE};
-$ENV{PATH} = "$ENV{GL_BINDIR}:$ENV{PATH}";
+$ENV{PATH} = "$ENV{GL_BINDIR}:$ENV{PATH}" unless $ENV{PATH} =~ /^$ENV{GL_BINDIR}:/;
{
$rc{GL_TID} = $ENV{GL_TID} ||= $$;

0 comments on commit fd0778e

Please sign in to comment.