X-Git-Url: http://git.pjr.cc/?p=gwvp-mini.git;a=blobdiff_plain;f=bin%2Fgwvpminicmdtool.php;h=3f59778b0273f0de940b03a29992a0adeaf1e419;hp=afc372a1881ba250df0d43b64a84ec938bc6da3e;hb=cedd983dbbfcea17f6b3f5448009bd3175b37aa5;hpb=39de15eac6b59d9c49634f63e6fcd3ca03082a12 diff --git a/bin/gwvpminicmdtool.php b/bin/gwvpminicmdtool.php index afc372a..3f59778 100644 --- a/bin/gwvpminicmdtool.php +++ b/bin/gwvpminicmdtool.php @@ -87,8 +87,13 @@ function gwvpcmdtool_BackGroundClone() $cmd = "git clone --bare $from $repo_base/$to.git"; exec($cmd); - $rid = gwvpmini_GetRepoId($to); + $rn = gwvpmini_getRepo(null, $to, null); + $rid = $rn["id"]; + $uid = $rn["ownerid"]; gwvpmini_EnableRepo($rid); + + //gwvpmini_SendMessageByDb($type, $data, $forid) + gwvpmini_SendMessageByDb("info", "Repo $to has finished cloning and now ready", $uid); echo "update $to ($rid) and enabled it\n"; }