xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit b3657cb073291681e8e3fd6ec9523bf550081d8e

Corrected 'rights' unit test.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-07-14 04:14
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-07-14 04:14
Parent(s): 0e769caa8f59615804312c488b74683288243196
Signing key:
Tree: 29cfcb28dfde6af8499d625cc89665e76b4541e4
File Lines added Lines deleted
tests/repo.php 6 2
File tests/repo.php changed (mode: 100644) (index b14d253..93ff574)
... ... $sql = "DELETE FROM users WHERE uid = 12";
31 31 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
32 32 rg_sql_free_result($res); rg_sql_free_result($res);
33 33
34 $sql = "DELETE FROM rights WHERE uid = 12";
35 $res = rg_sql_query($db, $sql);
36 rg_sql_free_result($res);
37
34 38 rg_log("rg_repo_path 1"); rg_log("rg_repo_path 1");
35 39 $e = $rg_repos . "/by_id/11/22/33/44/11223344/repos/by_id/55.git"; $e = $rg_repos . "/by_id/11/22/33/44/11223344/repos/by_id/55.git";
36 40 $c = rg_repo_path_by_id(0x11223344, 55); $c = rg_repo_path_by_id(0x11223344, 55);
 
... ... if ($r === FALSE) {
219 223 rg_log("Cannot list rights (" . rg_repo_error() . ")"); rg_log("Cannot list rights (" . rg_repo_error() . ")");
220 224 exit(1); exit(1);
221 225 } }
222 if (count($r) != 2) {
226 if (count($r) != 3) {
223 227 rg_log_ml("r=" . print_r($r, TRUE)); rg_log_ml("r=" . print_r($r, TRUE));
224 rg_log("Cannot load all rights!");
228 rg_log("Cannot load all rights (should be 3, have " . count($r) . ")!");
225 229 exit(1); exit(1);
226 230 } }
227 231 // TODO: we should test if expected fields are returned! // TODO: we should test if expected fields are returned!
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master