From 00b793f5e64ea95a1556f7dae3e5ba6dd17a0f50 Mon Sep 17 00:00:00 2001 From: Teemu Matilainen Date: Wed, 3 Feb 2010 19:11:09 +0200 Subject: [PATCH] Set gitweb.owner config for new wildrepos When creating new wildrepos, add git config to tell gitweb the owner of the repository. Signed-off-by: Teemu Matilainen --- src/gitolite.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gitolite.pm b/src/gitolite.pm index 045e339..a73f255 100644 --- a/src/gitolite.pm +++ b/src/gitolite.pm @@ -123,7 +123,10 @@ sub new_repo # erm, note that's "and die" not "or die" as is normal in perl wrap_chdir("$repo.git"); system("git --bare init >&2"); - system("echo $creater > gl-creater") if $creater; + if ($creater) { + system("echo $creater > gl-creater"); + system("git", "config", "gitweb.owner", $creater); + } # propagate our own, plus any local admin-defined, hooks system("cp $hooks_dir/* hooks/"); chmod 0755, "hooks/update";