List of commits:
Subject Hash Author Date (UTC)
Mostly cosmetic plus some tests 1a538fff7a4886395612471211eeca0c091e6864 Catalin(ux) M. BOIE 2020-07-31 05:41:02
Added a custom Markdown parser 67b9687fb858ba1018d58edd276836a0411acd1e Catalin(ux) M. BOIE 2020-07-31 05:39:49
Add an index variable to rg_template_table f310f34a6c9a2a029d479d14d86e8ea2393ee3dd Catalin(ux) M. BOIE 2020-07-31 05:39:29
Mostly cosmetic in Source page cac471307a58104fbfa7838b34a7e2ffd2e05260 Catalin(ux) M. BOIE 2020-07-31 05:38:48
Do not log bots connections ef9cdff6a0cbd559f1833e46a66cbbbe726d3d99 Catalin(ux) M. BOIE 2020-07-31 05:38:13
Comparison update b67344452d66b2ed8ef53f65470d53f8b40fe59e Catalin(ux) M. BOIE 2020-07-31 05:37:38
Minor fix for a variable type mismatch a0680065333729b91558e77a6df4403ce8f5b1a5 Catalin(ux) M. BOIE 2020-07-31 05:37:20
Minor git fixes a21b35cd0f87b844fe5ce4b8b2e14fab2506296e Catalin(ux) M. BOIE 2020-07-31 05:36:43
Docker updates d3e9cd4e358cac2d4018dcf7dc681288445a679f Catalin(ux) M. BOIE 2020-07-31 05:36:08
Admin report improvements b527baab12e2e08998672559b0f33fc6df15e74c Catalin(ux) M. BOIE 2020-07-31 05:35:25
Cosmetic 30c879d625b094a33bd9a2165c67a8a11e802f42 Catalin(ux) M. BOIE 2020-07-31 05:34:19
Builder, worker and web updates for artifacts c82a7143a24ec987e0d98bb58327ef15bc602d0d Catalin(ux) M. BOIE 2020-07-31 05:30:44
Prevent bots to create accounts 3eacd8103e9a039f3f8585a59c27fdff6fd66ca4 Catalin(ux) M. BOIE 2020-07-08 05:25:37
css: Force the footer to the bottom using flex f89dddc9fa6b2c131448996cc51349e00224eea6 Catalin(ux) M. BOIE 2020-07-04 04:15:03
docs: css tweaks d270a286b160bb5de39ade5d99a58fe26e03b2d5 Catalin(ux) M. BOIE 2020-06-30 17:21:02
Improved admin report 9fa82cc2878886c2195cdd3f334dd532b3ea6a22 Catalin(ux) M. BOIE 2020-06-28 10:19:24
First version of artifacts ad6b6c75aab8d485ea45c1d851f23d83587d6931 Catalin(ux) M. BOIE 2020-06-27 13:11:17
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
Commit 1a538fff7a4886395612471211eeca0c091e6864 - Mostly cosmetic plus some tests
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-07-31 05:41
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-07-31 05:41
Parent(s): 67b9687fb858ba1018d58edd276836a0411acd1e
Signer:
Signing key:
Signing status: N
Tree: f9f7f91952c16946217fe626b4672e55eeda6244
File Lines added Lines deleted
inc/util.inc.php 4 1
scripts/cron.php 1 3
scripts/remote.php 2 1
tests/Makefile 1 1
tests/source.php 16 0
tests/util.php 9 0
File inc/util.inc.php changed (mode: 100644) (index 7ba2d2f..eac4518)
... ... function rg_del_tree($dst)
2014 2014 } }
2015 2015
2016 2016 $d = rg_dir_load($dst); $d = rg_dir_load($dst);
2017 if ($d === FALSE)
2017 // TODO: here, I cannot distinguish between error and dir_not_exists
2018 if ($d === FALSE) {
2019 rg_log('DEBUG: Cannot load dir ' . $dst);
2018 2020 break; break;
2021 }
2019 2022
2020 2023 $err = FALSE; $err = FALSE;
2021 2024 foreach ($d as $obj) { foreach ($d as $obj) {
File scripts/cron.php changed (mode: 100644) (index 7984b1e..51bd9ef)
... ... if ($db === FALSE) {
40 40 if (rg_struct_ok($db) === FALSE) if (rg_struct_ok($db) === FALSE)
41 41 exit(1); exit(1);
42 42
43 rg_sql_struct_slaves_update($db);
44
45 43 $first_install = rg_state_get($db, 'first_install'); $first_install = rg_state_get($db, 'first_install');
46 44 if ($first_install === FALSE) if ($first_install === FALSE)
47 45 exit(1); exit(1);
 
... ... while (gmdate('Hi') == '0610') {
228 226 rg_sql_free_result($res); rg_sql_free_result($res);
229 227 } }
230 228
231 rg_stat_set($db, 'slave_clean_last_run', $when);
229 rg_state_set($db, 'slave_clean_last_run', $when);
232 230
233 231 rg_log_exit(); rg_log_exit();
234 232 break; break;
File scripts/remote.php changed (mode: 100644) (index db7d4fb..b9ec698)
... ... rg_log_set_file($rg_log_dir . "/remote.log");
27 27
28 28 $rg = array(); $rg = array();
29 29 $rg['start'] = microtime(TRUE); $rg['start'] = microtime(TRUE);
30 rg_stats_conns_set('start', $rg['start']);
31 30
32 31 function info($str) function info($str)
33 32 { {
 
... ... $rg['base_url'] = rg_base_url();
90 89 rg_log('DEBUG: base_url=' . rg_base_url()); rg_log('DEBUG: base_url=' . rg_base_url());
91 90 $rg['debug'] = rg_state_get($db, 'debug'); $rg['debug'] = rg_state_get($db, 'debug');
92 91
92 rg_stats_conns_set('start', $rg['start']);
93
93 94 $login_ui = array('uid' => 0, $login_ui = array('uid' => 0,
94 95 'username' => 'anonymous user', 'username' => 'anonymous user',
95 96 'organization' => 0); 'organization' => 0);
File tests/Makefile changed (mode: 100644) (index cd599ab..7f237d9)
... ... clean:
12 12 qstats/* repos/* helper helper.pub keys/* ca *.pid \ qstats/* repos/* helper helper.pub keys/* ca *.pid \
13 13 *.tmp base ubase wh_cloud.git export.json \ *.tmp base ubase wh_cloud.git export.json \
14 14 .by_http temp_repos jars \ .by_http temp_repos jars \
15 ldap/chroot ldap/chroot-*
15 ldap/chroot ldap/chroot-* *.r *.e
16 16
17 17 .PHONY: clean-state .PHONY: clean-state
18 18 clean-state: clean-state:
File tests/source.php changed (mode: 100644) (index fec0650..0f181ce)
... ... putenv('GIT_SSH_COMMAND=ssh -v -o ControlMaster=no -o IdentityFile=../../keys/'
36 36 . $kn . ' -o IdentitiesOnly=yes'); . $kn . ' -o IdentitiesOnly=yes');
37 37
38 38
39 rg_log('');
40 rg_log_enter('Trying to load source/log for an empty repo...');
41 $data = array();
42 $headers = array();
43 $r = do_req($test_url . '/user/' . rawurlencode($rg_ui['username'])
44 . '/' . rawurlencode($repo['name']) . '/source/log',
45 $data, $headers);
46 if (!strstr($r['body'], 'This repo contains no commits.')) {
47 rg_log_ml('r[body]: ' . print_r($r['body'], TRUE));
48 rg_log('I cannot find \'no commits\' inside the body!');
49 exit(1);
50 }
51 rg_log_exit();
52
53
39 54 rg_log(''); rg_log('');
40 55 rg_log_enter('Trying to push master with an empty file...'); rg_log_enter('Trying to push master with an empty file...');
41 56 $cmsg = time() . ' commit message'; $cmsg = time() . ' commit message';
 
... ... rg_log('Check "log" menu...');
59 74 $r = do_req($test_url . '/user/' . rawurlencode($rg_ui['username']) $r = do_req($test_url . '/user/' . rawurlencode($rg_ui['username'])
60 75 . '/' . rawurlencode($repo['name']) . '/source/log', . '/' . rawurlencode($repo['name']) . '/source/log',
61 76 $data, $headers); $data, $headers);
77 // TODO: can func ever return FALSE? Change everywhere!
62 78 if ($r === FALSE) { if ($r === FALSE) {
63 79 rg_log('Cannot load source/log page!'); rg_log('Cannot load source/log page!');
64 80 exit(1); exit(1);
File tests/util.php changed (mode: 100644) (index 25671fd..1fc820e)
... ... ini_set('error_reporting', $old_error_reporting);
864 864 rg_log_exit(); rg_log_exit();
865 865
866 866
867 $s = '/a b/c/d/';
868 $e = '/a%20b/c/d/';
869 $r = rg_path2url($s);
870 if (strcmp($r, $e) != 0) {
871 rg_log('path2url error [' . $r . '] != [' . $e . ']!');
872 exit(1);
873 }
874
875
867 876 rg_log('OK!'); rg_log('OK!');
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