X-Git-Url: http://git.pjr.cc/?p=gwvp-mini.git;a=blobdiff_plain;f=gwvpmini%2Fgwvpmini_gitbackend.php;h=a50123b988a8e50b8456caabd8c046f238e4097f;hp=5a6c055286612b6c32b2b025e46cca26a3e616cd;hb=43b78ea0976ab7ec013c6a1ace53db98ede89012;hpb=90c1b8ddcf48b3f13f143954a81f231591955915 diff --git a/gwvpmini/gwvpmini_gitbackend.php b/gwvpmini/gwvpmini_gitbackend.php index 5a6c055..a50123b 100644 --- a/gwvpmini/gwvpmini_gitbackend.php +++ b/gwvpmini/gwvpmini_gitbackend.php @@ -422,6 +422,11 @@ function gwvpmini_createGitRepo($name, $ownerid, $desc, $defperms, $clonefrom, $ error_log("how did i end up in clonefrom? $clonefrom"); if(!$isremoteclone) { exec("/usr/bin/git clone --bare $repo_base/$clonefrom.git $repo_base/$name.git >> /tmp/gitlog 2>&1"); + gwvpmini_AddRepo($name, $desc, $ownerid, $defperms, $clonefrom); + } else { + // we do this from an outside call in the background + gwvpmini_SendMessage(error, "Cant clone from remote repos yet"); + return false; } } else {