List of commits:
Subject Hash Author Date (UTC)
Mostly cosmetic 3bf09056ede99df46c1b59802e6cf2c7bebf4f13 Catalin(ux) M. BOIE 2019-11-17 09:09:31
Added statistics for the installation ed743a601cd187431ccd80b57113ba9bb5704035 Catalin(ux) M. BOIE 2019-11-17 09:08:33
ldap: if we have no server, it is useless to continue processing c022b68a942f471e51cb8343bfef1cda390b27b1 Catalin(ux) M. BOIE 2019-11-16 06:30:47
Do not try to access a repo if is deleted 0a6b1bb704fbeaf60ba053ecc0c323a80f0e397c Catalin(ux) M. BOIE 2019-11-15 19:49:31
Some git tweaks to deal with empty repositories c42a22e41cd6d29862e13077e60374ceb7b0c946 Catalin(ux) M. BOIE 2019-11-14 03:30:12
Texts updates + cosmetic 70246eecb7b63460d28f20b5e2f3c9c1c50852ae Catalin(ux) M. BOIE 2019-11-14 03:29:33
Docker updates aa4cf359af2c7c1e20e4f33c478f2bbcd134f081 Catalin(ux) M. BOIE 2019-11-14 03:24:05
Because of docker, we are now using HTTP_HOST insead of SERVER_NAME 9cf31231d760daac43e1c3454c5a308d69ea4898 Catalin(ux) M. BOIE 2019-11-14 03:22:37
Corrected stupid space char inside cache key 5958389c03b7536d6332a51e30b112ad3a520571 Catalin(ux) M. BOIE 2019-11-10 21:15:32
nginx: remove text/html because it is always added to gzip_types f8717bc9ac127e806696f088389c2911a6d37e28 Catalin(ux) M. BOIE 2019-11-09 13:05:54
vm: get rid of i386 (we move to x86_64) 67662a7b71f1b21f53fe7fa819afdf366ad3b4b4 Catalin(ux) M. BOIE 2019-11-09 07:58:05
SELinux: allow httpd_t to map rocketgit_exec_t files 6d3550736af317791be3d6355dd90bf64de323f5 Catalin(ux) M. BOIE 2019-11-09 00:36:03
Added rg_git_repo_is_empty function plus func test a13c5439fceffd8b1474f1105ca37c7b703d2fc9 Catalin(ux) M. BOIE 2019-11-08 04:34:34
TODO updates, user_min/max defaults changed d2f35a43f5de793565e0df9889d587c524df5f20 Catalin(ux) M. BOIE 2019-11-06 16:32:08
More rg_exec2 fixes 808297884e42942c83762040c4247c7cf9a593e8 Catalin(ux) M. BOIE 2019-11-06 16:31:09
Always set rg[hostname] - used also for ssh connections for TOTP 1a7a693617ac521967b8df73245cd704004b76b5 Catalin(ux) M. BOIE 2019-11-06 04:10:59
White space corrections 92a1b944842439b9476a954daa2a65c5acfca85c Catalin(ux) M. BOIE 2019-11-05 18:52:08
README updates b57e3765de34c5e4ed7afa8384f24b6337352b17 Catalin(ux) M. BOIE 2019-11-01 03:18:48
download page updates 0185da40f7b2779c886b9c3e67b10fe69b1b112c Catalin(ux) M. BOIE 2019-11-01 03:13:14
css: small updates 59ae919c798d64f74ed8bdeb08241e4e76840afe Catalin(ux) M. BOIE 2019-10-30 21:33:37
Commit 3bf09056ede99df46c1b59802e6cf2c7bebf4f13 - Mostly cosmetic
Author: Catalin(ux) M. BOIE
Author date (UTC): 2019-11-17 09:09
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2019-11-17 09:09
Parent(s): ed743a601cd187431ccd80b57113ba9bb5704035
Signer:
Signing key:
Signing status: N
Tree: 9379eadb10661ba5a81128f4627b87aa07b598d6
File Lines added Lines deleted
TODO 2 1
inc/admin.inc.php 6 6
inc/dispatch/dispatch.php 2 2
root/themes/default/admin/settings/ssh/hints.html 1 1
root/themes/default/admin/settings/web/hints.html 3 3
scripts/cron.php 2 1
tests/ssh.php 4 0
tests/wh_http.php 8 0
File TODO changed (mode: 100644) (index 6bb4458..9a2a408)
8 8 Search for php_uname? Search for php_uname?
9 9
10 10 == BEFORE NEXT RELEASE == == BEFORE NEXT RELEASE ==
11 [ ] Use HTTP_USER_AGENT for storing pulls in history.
12 [ ] Seems I do not deal with renaming users, even if the function exists!
11 13 [ ] Extra output when cloning: seems to be a bug in git. [ ] Extra output when cloning: seems to be a bug in git.
12 14 [ ] If user is deleted, do not allow access to any other user area. [ ] If user is deleted, do not allow access to any other user area.
13 15 Seems that now we allow access to repositories! Seems that now we allow access to repositories!
 
... ... to add a worker? Also, no hint is presented.
754 756 Not only http. Not only http.
755 757 [ ] If user has push access, why do we create a namespace?! [ ] If user has push access, why do we create a namespace?!
756 758 Maybe because I do not know the pushed refs? Maybe because I do not know the pushed refs?
757 [ ] 2fa: http is not supported yet!
758 759 [ ] Now, also the web part can do the db update. [ ] Now, also the web part can do the db update.
759 760 [ ] rg_repo_fetch_push_helper: if git repo is not created, delay the fetch/push? [ ] rg_repo_fetch_push_helper: if git repo is not created, delay the fetch/push?
760 761 [ ] target_ui => owner_ui? [ ] target_ui => owner_ui?
File inc/admin.inc.php changed (mode: 100644) (index 9fce1b3..87c2bf2)
... ... function rg_admin_report1_suggestions($db, $from, $to)
281 281 } else { } else {
282 282 $row = rg_sql_fetch_array($res); $row = rg_sql_fetch_array($res);
283 283 $total = $row['total']; $total = $row['total'];
284 rg_sql_free_result($res);
284 285 } }
285 rg_sql_free_result($res);
286 286
287 287 // Yesterday // Yesterday
288 288 $yesterday_text = ''; $yesterday_text = '';
 
... ... function rg_admin_report1_suggestions($db, $from, $to)
305 305 $yesterday = $count; $yesterday = $count;
306 306 if ($count) if ($count)
307 307 $yesterday_text = "\nYesterday suggestions:\n" . $list; $yesterday_text = "\nYesterday suggestions:\n" . $list;
308 rg_sql_free_result($res);
308 309 } }
309 rg_sql_free_result($res);
310 310
311 311 $ret .= "\nTotal suggestions: " . $total; $ret .= "\nTotal suggestions: " . $total;
312 312 $ret .= "\nYesterday suggestions: " . $yesterday; $ret .= "\nYesterday suggestions: " . $yesterday;
 
... ... function rg_admin_report1($db, $rg)
361 361 $row = rg_sql_fetch_array($res); $row = rg_sql_fetch_array($res);
362 362 $yesterday = $row['count']; $yesterday = $row['count'];
363 363 $total_yesterday_changes += $row['count']; $total_yesterday_changes += $row['count'];
364 rg_sql_free_result($res);
364 365 } }
365 rg_sql_free_result($res);
366 366
367 367 // Total // Total
368 368 $sql = "SELECT COUNT(*) AS total FROM " . $table; $sql = "SELECT COUNT(*) AS total FROM " . $table;
 
... ... function rg_admin_report1($db, $rg)
372 372 } else { } else {
373 373 $row = rg_sql_fetch_array($res); $row = rg_sql_fetch_array($res);
374 374 $total = $row['total']; $total = $row['total'];
375 rg_sql_free_result($res);
375 376 } }
376 rg_sql_free_result($res);
377 377
378 378 $body .= "\n" . $yesterday . "\t" . $total $body .= "\n" . $yesterday . "\t" . $total
379 379 . "\t" . "yesterday / total " . $text; . "\t" . "yesterday / total " . $text;
 
... ... function rg_admin_report1($db, $rg)
399 399 if ($users) if ($users)
400 400 $body .= "\nYesterday users (" . $users . "):\n" $body .= "\nYesterday users (" . $users . "):\n"
401 401 . $list; . $list;
402 rg_sql_free_result($res);
402 403 } }
403 rg_sql_free_result($res);
404 404
405 405 $sql = "SELECT name, description, public FROM repos" $sql = "SELECT name, description, public FROM repos"
406 406 . " WHERE itime >= $y_start" . " WHERE itime >= $y_start"
 
... ... function rg_admin_report1($db, $rg)
420 420 } }
421 421 if ($repos) if ($repos)
422 422 $body .= "\nYesterday repos (" . $repos . "):\n" . $list; $body .= "\nYesterday repos (" . $repos . "):\n" . $list;
423 rg_sql_free_result($res);
423 424 } }
424 rg_sql_free_result($res);
425 425
426 426 $sug = rg_admin_report1_suggestions($db, $y_start, $y_end); $sug = rg_admin_report1_suggestions($db, $y_start, $y_end);
427 427 $body .= "\n" . $sug; $body .= "\n" . $sug;
File inc/dispatch/dispatch.php changed (mode: 100644) (index e069f98..1a6d32e)
... ... case 'features':
100 100 break; break;
101 101
102 102 case 'pricing': case 'pricing':
103 $body .= rg_template('pricing.html', $rg, TRUE /* xss */);
103 $body .= rg_template('pricing.html', $rg, TRUE /*xss*/);
104 104 break; break;
105 105
106 106 case 'donate': case 'donate':
107 $body .= rg_template('donate.html', $rg, TRUE /* xss */);
107 $body .= rg_template('donate.html', $rg, TRUE /*xss*/);
108 108 break; break;
109 109
110 110 case 'discover': case 'discover':
File root/themes/default/admin/settings/ssh/hints.html changed (mode: 100644) (index 72d28cf..62cbab1)
... ... Match User rocketgit<br />
12 12 &nbsp;&nbsp; AuthorizedKeysCommandUser rocketgit<br /> &nbsp;&nbsp; AuthorizedKeysCommandUser rocketgit<br />
13 13 &nbsp;&nbsp; AuthenticationMethods publickey &nbsp;&nbsp; AuthenticationMethods publickey
14 14 </div> </div>
15 Then, <b>restart</b> the ssh daemon.
15 Then, restart the ssh daemon: <b>service sshd restart</b> or <b>systemctl restart sshd</b>.
File root/themes/default/admin/settings/web/hints.html changed (mode: 100644) (index f76bd9f..11af984)
1 1 <br /> <br />
2 - RocketGit will respect the host name defined in the web server to construct
3 URLs; please make sure it is correct. Here you can overwrite it.<br />
2 - RocketGit will respect the host name used by the browser to construct
3 URLs; overwrite it here to be sure that a correct one is used.<br />
4 4 - It is recommended to disable HTTP access and allow only HTTPS.<br /> - It is recommended to disable HTTP access and allow only HTTPS.<br />
5 - Do not activate HTTP and/or HTTPS if they are not enabled in the web server.
5 - Do not activate a HTTP/HTTPS port if it is not enabled in the web server.
File scripts/cron.php changed (mode: 100644) (index 3f1bf33..97cfc7c)
... ... if (gmdate("dHi") == "010610") {
195 195
196 196 $sql = 'DROP TABLE ' . $row['relname']; $sql = 'DROP TABLE ' . $row['relname'];
197 197 $res2 = rg_sql_query($db, $sql); $res2 = rg_sql_query($db, $sql);
198 rg_sql_free_result($res2);
198 if ($res2 !== FALSE)
199 rg_sql_free_result($res2);
199 200 } }
200 201 rg_sql_free_result($res); rg_sql_free_result($res);
201 202 } }
File tests/ssh.php changed (mode: 100644) (index 9d1975a..35d6015)
... ... $sc = rg_test_sc_generate($db, $rg_ui);
216 216 $sql = "UPDATE scratch_codes SET sc = '0' || substring(sc from 1 for 7)" $sql = "UPDATE scratch_codes SET sc = '0' || substring(sc from 1 for 7)"
217 217 . " WHERE uid = " . $rg_ui['uid']; . " WHERE uid = " . $rg_ui['uid'];
218 218 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
219 if ($res === FALSE) {
220 rg_log('Cannot do query!');
221 exit(1);
222 }
219 223 rg_sql_free_result($res); rg_sql_free_result($res);
220 224 // we want to test with a short code, so insert one and flush cache // we want to test with a short code, so insert one and flush cache
221 225 $key = 'user::' . $rg_ui['uid'] . '::login_tokens::sc'; $key = 'user::' . $rg_ui['uid'] . '::login_tokens::sc';
File tests/wh_http.php changed (mode: 100644) (index 38d4666..3c1a62d)
... ... rg_test_wh_add_edit($db, $rg_ui, 'http', $extra);
313 313 $sql = "SELECT * FROM webhooks WHERE uid = " . $rg_ui['uid'] $sql = "SELECT * FROM webhooks WHERE uid = " . $rg_ui['uid']
314 314 . " AND id = " . $wh_id1; . " AND id = " . $wh_id1;
315 315 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
316 if ($res === FALSE) {
317 rg_log('Cannot do query!');
318 exit(1);
319 }
316 320 $row = rg_sql_fetch_array($res); $row = rg_sql_fetch_array($res);
317 321 rg_sql_free_result($res); rg_sql_free_result($res);
318 322 $row['idata'] = unserialize($row['idata']); $row['idata'] = unserialize($row['idata']);
 
... ... if (!strstr($r['body'], 'success')) {
379 383 } }
380 384 $sql = "SELECT id FROM webhooks WHERE id = " . $wh_id1; $sql = "SELECT id FROM webhooks WHERE id = " . $wh_id1;
381 385 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
386 if ($res === FALSE) {
387 rg_log('Cannot do query!');
388 exit(1);
389 }
382 390 $rows = rg_sql_num_rows($res); $rows = rg_sql_num_rows($res);
383 391 rg_sql_free_result($res); rg_sql_free_result($res);
384 392 if ($rows != 0) { if ($rows != 0) {
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