List of commits:
Subject Hash Author Date (UTC)
Allow adding bugs for public repos + small fixes e67955ce3360c8c003a718e01844b3d8effa74a6 Catalin(ux) M. BOIE 2020-06-25 16:05:54
History updates 4c4aef444bbd1149f2c02b6da620f184aae1eed6 Catalin(ux) M. BOIE 2020-06-16 05:53:14
Allow cron to execute sub-tasks in parallel - we missed stats f65c76714cf349a53f584c8e65d9e89c24a4fa69 Catalin(ux) M. BOIE 2020-06-12 06:50:40
bug: search: fixed the override of some global variables 82e251ea883e50b8d1476530e0268fd5770fbf41 Catalin(ux) M. BOIE 2020-06-10 21:29:03
If a repo is non-existent, we should not try to use the id bcb08f74e21556aa750920335ebec2f965e72f36 Catalin(ux) M. BOIE 2020-06-10 08:05:43
If no activity, average elap is not computed correctly a7d4f0042c912d29f7943e0446820a477f42d6f7 Catalin(ux) M. BOIE 2020-06-09 07:03:21
When a user is requesting an e-mail confirmation operation, ignore if the e-mail was confirmed 62c387ed431d0c46d16e534cc1c954557ee389f7 Catalin(ux) M. BOIE 2020-06-08 06:42:22
Reverse test messed the creation of partition tables; more debugging d820816c2624549e0b0e1634523717cda0b7ba66 Catalin(ux) M. BOIE 2020-06-05 17:33:08
We need to prepare the partition tables before some inserts 07a12d1c79104b4707a9d43463fa9c11a4697293 Catalin(ux) M. BOIE 2020-06-05 15:55:43
.spec updates 5fe0aca1b4a3bfd8c1c8db95409faf512ad09b43 Catalin(ux) M. BOIE 2020-06-04 22:03:57
Switch to Podman (because of Fedora 32) and fix the worker service in the spec file 05b3866cd09b0aa8367d3b5755f45ea7274658de Catalin(ux) M. BOIE 2020-06-04 15:50:41
Added sample configuration for workers df36ccd20e40987a4ca2355062ee1312aa2ee3a2 Catalin(ux) M. BOIE 2020-06-04 15:14:52
Avoid complains from install for systemd daemon-reload 683a92542cc0608293ceefc111a05e1eb328a2d8 Catalin(ux) M. BOIE 2020-06-04 15:09:57
Small stuff e64a838d032e54587ab3110ab8bb04a0cde78231 Catalin(ux) M. BOIE 2020-06-04 14:49:56
Lots of changes b8164d9e1e263eb4db75e32430f0753b63d0028e Catalin(ux) M. BOIE 2020-06-04 07:14:35
Lots of small fixes and functional tests ad2c8f4ce214896cb5984031dbd916467878ccfd Catalin(ux) M. BOIE 2020-05-16 09:30:47
Lots of things, mostly worker fixes 8768227306ef89ecc51d392cf986e75a7044dde4 Catalin(ux) M. BOIE 2020-04-10 15:27:11
Added functional test for HTTP 304 code 93205ec14d1073c434360abf7ea525a75407b1ab Catalin(ux) M. BOIE 2020-04-02 14:05:49
Lots of changes all over the place 3ddbd9e686f514eed1e715d7702a910ca3f8b22c Catalin(ux) M. BOIE 2020-04-01 07:17:57
More tests updates d5d45ace725f6ab336998a328136a2f7f9474df1 Catalin(ux) M. BOIE 2020-04-01 05:30:54
Commit e67955ce3360c8c003a718e01844b3d8effa74a6 - Allow adding bugs for public repos + small fixes
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-06-25 16:05
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-06-25 16:05
Parent(s): 4c4aef444bbd1149f2c02b6da620f184aae1eed6
Signer:
Signing key:
Signing status: N
Tree: 61334e3dfa0628bbb12bca06febe97631a9227dd
File Lines added Lines deleted
inc/repo.inc.php 25 12
File inc/repo.inc.php changed (mode: 100644) (index 783f9d6..28c981c)
... ... $rg_repo_path_rights = array(
32 32 ); );
33 33
34 34 $rg_repo_rights = array( $rg_repo_rights = array(
35 "A" => "Access repo",
36 "E" => "Create/edit repo",
37 "D" => "Delete repo",
35 'A' => 'Access repo',
36 'a' => 'Access bug tracker',
37 'B' => 'Add bugs',
38 'C' => 'Close bugs',
39 'D' => 'Delete repo',
40 'd' => 'Delete bugs',
41 'E' => 'Create/edit repo',
42 'G' => 'Grant rights',
38 43 'K' => 'Lock repo', 'K' => 'Lock repo',
39 "G" => "Grant rights",
40 "a" => "Access bug tracker",
41 "B" => "Add bugs",
42 "r" => "Reopen bugs",
43 "d" => "Delete bugs",
44 "C" => "Close bugs",
44 'r' => 'Reopen bugs',
45 'T' => 'Delete artifacts',
46 't' => 'Access artifacts',
45 47 'W' => 'Manage hooks' 'W' => 'Manage hooks'
46 48 ); );
47 49
 
... ... rg_rights_register("repo_refs", $rg_repo_refs_rights, "FMH",
52 54 "rg_repo_compare_refs", "rg_repo_rights_inject"); "rg_repo_compare_refs", "rg_repo_rights_inject");
53 55 rg_rights_register("repo_path", $rg_repo_path_rights, "P", rg_rights_register("repo_path", $rg_repo_path_rights, "P",
54 56 "rg_repo_compare_paths", "rg_repo_rights_inject"); "rg_repo_compare_paths", "rg_repo_rights_inject");
55 rg_rights_register("repo", $rg_repo_rights, "AaB",
57 rg_rights_register("repo", $rg_repo_rights, 'AaBt',
56 58 FALSE, "rg_repo_rights_inject"); FALSE, "rg_repo_rights_inject");
57 59
58 60
 
... ... function rg_repo_rights_inject($db, $obj_id, $type, $owner, $uid)
298 300
299 301 if (strcmp($type, "repo") == 0) { if (strcmp($type, "repo") == 0) {
300 302 $a['uid'] = 0; $a['uid'] = 0;
301 $a['rights'] = "AaB"; // access repo + access bug tracker + add bugs
302 $a['rights'] = "Aa"; // access repo + access bug tracker + add bugs
303 $a['rights'] = 'AaBt';
303 304 $a['description'] = 'Autogenerated (repo is public)'; $a['description'] = 'Autogenerated (repo is public)';
304 305 $ret[] = $a; $ret[] = $a;
305 306 } else if (strcmp($type, "repo_refs") == 0) { } else if (strcmp($type, "repo_refs") == 0) {
 
... ... function rg_repo_edit_high_level($db, &$rg)
1898 1899 if (!$edit) { if (!$edit) {
1899 1900 // Defaults // Defaults
1900 1901 $rg['ri'] = array(); $rg['ri'] = array();
1902 $rg['ri']['exists'] = 0;
1901 1903 $rg['ri']['repo_id'] = '0'; $rg['ri']['repo_id'] = '0';
1902 1904 $rg['ri']['master'] = '0'; $rg['ri']['master'] = '0';
1903 1905 $rg['ri']['name'] = ''; $rg['ri']['name'] = '';
 
... ... function rg_repo_stats($rg)
2211 2213 } }
2212 2214
2213 2215 $path = rg_repo_path_by_id($rg['ri']['uid'], $rg['ri']['repo_id']); $path = rg_repo_path_by_id($rg['ri']['uid'], $rg['ri']['repo_id']);
2216
2217 $r = rg_git_repo_is_empty($path);
2218 if ($r == -1) {
2219 $ret = rg_template('internal_err.html', $rg, TRUE /*xss*/);
2220 break;
2221 }
2222 if ($r == 1) {
2223 $ret = rg_template('repo/err/not_init.html', $rg, TRUE /*xss*/);
2224 break;
2225 }
2226
2214 2227 $log = rg_git_log($path, 0 /*max*/, '', '', FALSE /*also_patch*/, $log = rg_git_log($path, 0 /*max*/, '', '', FALSE /*also_patch*/,
2215 2228 0 /*patch_limit*/); 0 /*patch_limit*/);
2216 2229 if ($log === FALSE) { if ($log === FALSE) {
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://rocketgit.com/user/catalinux/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rocketgit

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rocketgit

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