aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS4
-rw-r--r--lib/MGA/Git.pm2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 73af367..3775b6e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+- fix bug introduced in version 0.11, access gl_template using
+ origin_config.
+
+
Version 0.11
- soft_repo.gl: Put maintainer nick in square brackets
diff --git a/lib/MGA/Git.pm b/lib/MGA/Git.pm
index 72407c4..5e3d20e 100644
--- a/lib/MGA/Git.pm
+++ b/lib/MGA/Git.pm
@@ -170,7 +170,7 @@ sub gitolite_repo_config {
repo_conf => sub { repo_config($r, $repo, @_) },
origin_conf => sub { origin_config($r, $repo, @_) },
};
- return process_tmpl($r->{repos}{$repo}{gl_template}, 'gl', $vars);
+ return process_tmpl(origin_config($r, $repo, 'gl_template'), 'gl', $vars);
}
sub gitolite_group_config {