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 <teemu.matilainen@reaktor.fi>
This commit is contained in:
parent
b1659db742
commit
00b793f5e6
|
@ -123,7 +123,10 @@ sub new_repo
|
||||||
# erm, note that's "and die" not "or die" as is normal in perl
|
# erm, note that's "and die" not "or die" as is normal in perl
|
||||||
wrap_chdir("$repo.git");
|
wrap_chdir("$repo.git");
|
||||||
system("git --bare init >&2");
|
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
|
# propagate our own, plus any local admin-defined, hooks
|
||||||
system("cp $hooks_dir/* hooks/");
|
system("cp $hooks_dir/* hooks/");
|
||||||
chmod 0755, "hooks/update";
|
chmod 0755, "hooks/update";
|
||||||
|
|
Loading…
Reference in a new issue