From 2eabb7b3e7e3b452ebf0a227eea9956dd136fff9 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Mon, 25 Nov 2013 14:34:03 +0100 Subject: Fix bug introduced by commit 17ad237cd599702f The gl_template option is now in the origin_config instead of repo_config before, so we need to use the origin_config function to access it. --- lib/MGA/Git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 { -- cgit v1.2.1