(rc) prefix GL_BINDIR to PATH
Needed when the user didn't actually "install" but is just running it by using the full path to "gitolite". Without this, every time my code runs "gitolite <some sub-command>" I have to prefix "gitolite" with $ENV{GL_BINDIR}, which is kinda painful...
This commit is contained in:
parent
428485086f
commit
84422ccf30
|
@ -52,6 +52,9 @@ _die "$rc seems to be for older gitolite" if defined($GL_ADMINDIR);
|
|||
# let values specified in rc file override our internal ones
|
||||
@rc{ keys %RC } = values %RC;
|
||||
|
||||
# fix PATH (TODO: do it only if 'gitolite' isn't in PATH)
|
||||
$ENV{PATH} = "$ENV{GL_BINDIR}:$ENV{PATH}";
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
use strict;
|
||||
|
|
Loading…
Reference in a new issue