From cc9727c42bea266c19fca503f75b5b835382c676 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 17 Aug 2012 22:26:03 +0530 Subject: [PATCH] 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. --- src/lib/Gitolite/Conf/Explode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Gitolite/Conf/Explode.pm b/src/lib/Gitolite/Conf/Explode.pm index 03f2cb2..ec78973 100644 --- a/src/lib/Gitolite/Conf/Explode.pm +++ b/src/lib/Gitolite/Conf/Explode.pm @@ -27,7 +27,7 @@ sub explode { my ( $file, $subconf, $out ) = @_; # 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 ); while (<$fh>) {