X-Git-Url: http://git.pjr.cc/?a=blobdiff_plain;f=gwvplib%2Fgwvpgitcontrol.php;h=68935a2ee755f75484af610fa920d0d1b4412d96;hb=74399e0d5226d43656c618451b4e6fc06702e5ab;hp=b5c7c490561c2fdbb34dea5813a2468bc268b3b5;hpb=eafd2fd6a4a6a3f5866780e0b9e07e1b83ea6be7;p=gwvp.git diff --git a/gwvplib/gwvpgitcontrol.php b/gwvplib/gwvpgitcontrol.php index b5c7c49..68935a2 100644 --- a/gwvplib/gwvpgitcontrol.php +++ b/gwvplib/gwvpgitcontrol.php @@ -1,6 +1,6 @@ /tmp/gitlog 2>&1"); + chdir("$repo_base/$name.git"); + exec("/usr/bin/git update-server-info"); + } else { + error_log("create via mirror on $repo_base/$name.git"); + exec("/usr/bin/git clone --mirror $bundle $repo_base/$name.git > /tmp/gitlog 2>&1"); + chdir("$repo_base/$name.git"); + exec("/usr/bin/git update-server-info"); + } return true; }