Permalink
Browse files

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.
  • Loading branch information...
1 parent 7170ad9 commit d9df70a04f16dd67c87f9e01d06b7ee584fab131 @sitaramc committed May 31, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 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 =

0 comments on commit d9df70a

Please sign in to comment.