From d9df70a04f16dd67c87f9e01d06b7ee584fab131 Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Fri, 1 Jun 2012 05:24:27 +0530 Subject: [PATCH] allow getting config settings for non-existant repos also It's reasonable to want to see config items (for example, mirror settings) that *would* apply if the repo existed. --- src/lib/Gitolite/Conf/Load.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib/Gitolite/Conf/Load.pm b/src/lib/Gitolite/Conf/Load.pm index 3537c4f..70ec14a 100644 --- a/src/lib/Gitolite/Conf/Load.pm +++ b/src/lib/Gitolite/Conf/Load.pm @@ -119,8 +119,11 @@ sub git_config { my ( $repo, $key, $empty_values_OK ) = @_; $key ||= '.'; - return {} if repo_missing($repo); - load($repo); + if (repo_missing($repo)) { + load_common(); + } else { + load($repo); + } # read comments bottom up my %ret =