minor bug in include file handing...

gitolite does indeed try to not load itself twice, but I forgot that by
that time the pwd is ~/.gitolite/conf not ~/.gitolite so it always ended
up reading itself twice in case of a wildcard include.
This commit is contained in:
Sitaram Chamarty 2012-08-17 22:26:03 +05:30
parent 7409635823
commit cc9727c42b

View file

@ -27,7 +27,7 @@ sub explode {
my ( $file, $subconf, $out ) = @_; my ( $file, $subconf, $out ) = @_;
# seed the 'seen' list if it's empty # seed the 'seen' list if it's empty
$included{ device_inode("conf/gitolite.conf") }++ unless %included; $included{ device_inode("gitolite.conf") }++ unless %included;
my $fh = _open( "<", $file ); my $fh = _open( "<", $file );
while (<$fh>) { while (<$fh>) {