aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mars-attacks.org>2013-11-25 14:34:03 +0100
committerNicolas Vigier <boklm@mars-attacks.org>2013-11-25 14:34:03 +0100
commit2eabb7b3e7e3b452ebf0a227eea9956dd136fff9 (patch)
tree4b1f96dc651e783a26ca46a489be9ef4e5d55064
parentaf79eae69272740f8cf23679c903dd78843d4a4f (diff)
downloadmgagit-2eabb7b3e7e3b452ebf0a227eea9956dd136fff9.tar
mgagit-2eabb7b3e7e3b452ebf0a227eea9956dd136fff9.tar.gz
mgagit-2eabb7b3e7e3b452ebf0a227eea9956dd136fff9.tar.bz2
mgagit-2eabb7b3e7e3b452ebf0a227eea9956dd136fff9.tar.xz
mgagit-2eabb7b3e7e3b452ebf0a227eea9956dd136fff9.zip
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.
-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 {