$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";
}
$rn = gwvpmini_getRepo(null, $name, null);
$rid = $rn["id"];
gwvpmini_SetRepoCloning($rid);
- gwvpmini_SendMessage("info", "Background clone initiated for $name ($rid) from $clonefrom... your repo will be available once the background clone is finished");
+ gwvpmini_SendMessageByDb("info", "Background clone initiated for $name ($rid) from $clonefrom... your repo will be available once the background clone is finished", $ownerid);
return false;
}
} else {