List of commits:
Subject Hash Author Date (UTC)
Cosmetic cb68f1921782a503675c592dc7484aa26b8815b6 Catalin(ux) M. BOIE 2017-03-26 09:37:41
Improve state handling: do not check for an old value; verify if table exists before doing a select 17d8eb4b4592dd96e62a8da74d87d3d3b26aeb86 Catalin(ux) M. BOIE 2017-03-26 09:37:01
Impoved debug for cache 4d6349f7143d61583e6d2d9612c89b55af4eea97 Catalin(ux) M. BOIE 2017-03-26 09:36:08
I cannot be sure if the data is stored only in Germany. And we do backups in Romania. 1610c997dbda53c0a21e301b51832d9285ecbcf2 Catalin(ux) M. BOIE 2017-03-26 08:24:46
Removed a not used variable 4d2bab105c6f7748ca53d9a8301a2da320153d53 Catalin(ux) M. BOIE 2017-03-21 20:15:29
tests: ignore some dirs 7260fc44f8d0197b917bc13a0ac19eb8c58d4534 Catalin(ux) M. BOIE 2017-03-21 20:01:03
Link to anon push doc 42dbfdc9ad5fad0157388f239f790f2e8f4de7c2 Catalin(ux) M. BOIE 2017-03-21 20:00:45
comparison: add red/green for css/js sizes and for pagespeed cbcda26a9d20c115eb0931ab2af69f3c2315ab7d Catalin(ux) M. BOIE 2017-03-21 19:44:47
Trim the hints for cloning the tree 59bc91f5229abf96f453d872a58a2c96cf18198c Catalin(ux) M. BOIE 2017-03-21 19:35:58
Do the right thing (no error) when an empty tree is present 7c138f486a81d09df44e811714d7bdeb92d7c01d Catalin(ux) M. BOIE 2017-03-21 19:34:03
Do not use UA when building anti-CSRF token. Think about plugins which change the UA at every request 7346fceeff8bea1eaa500dd3ce1677deb84f8b77 Catalin(ux) M. BOIE 2017-03-21 16:36:46
Do not create a namespace anymore if the user has the rights to push 13f8037ba76b57ae919758609c523dcbb6588745 Catalin(ux) M. BOIE 2017-03-19 19:44:07
Docker improvements c3c0f8ff3f5a2f9acfeea2e9bbf271cfeae4a8bd Catalin(ux) M. BOIE 2017-03-19 19:43:25
Small changes regarding more debugging in several places 03407e5f7562ac997612c56fd20fe067162ea8de Catalin(ux) M. BOIE 2017-03-19 19:42:58
Some improvements for comparison e3a06443fba2c22009f0bde4ea9c3f201a9803cb Catalin(ux) M. BOIE 2017-03-19 19:41:53
Functional tests improvements 6b82e5a1eaf800a15e42840bc9c889e32a7532f0 Catalin(ux) M. BOIE 2017-03-19 19:40:21
Do not report security violations generated by the functional tests 6028674aa0153d4bc1c46999516f87a6019df6d2 Catalin(ux) M. BOIE 2017-03-19 19:38:23
Admin init form: pass next to user to be able to be cached by browsers c3d9974e92a03a3ec4d093188842330bb7a0cad0 Catalin(ux) M. BOIE 2017-03-17 23:41:10
SELinux: Allow php-fpm to create log files 94962a7b15e91acfa609663185ceab365a89ac98 Catalin(ux) M. BOIE 2017-03-17 23:39:01
Allow anonymous push when using git:// or ssh:// 46d947874f12b7ac7f1ac3fa552f703c498082b2 Catalin(ux) M. BOIE 2017-03-02 22:17:48
Commit cb68f1921782a503675c592dc7484aa26b8815b6 - Cosmetic
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-03-26 09:37
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-03-26 09:37
Parent(s): 17d8eb4b4592dd96e62a8da74d87d3d3b26aeb86
Signing key:
Tree: 9c882de62f11956a1482e6cbf34c39c1b59c02bd
File Lines added Lines deleted
hooks/post-receive 1 1
hooks/pre-receive 1 1
hooks/update 0 2
tests/common.php 1 0
tests/state.php 32 6
File hooks/post-receive changed (mode: 100755) (index e39549b..9856d15)
5 5 // post-receive hook // post-receive hook
6 6 // TODO: This hook can be run for marking repo dirty. // TODO: This hook can be run for marking repo dirty.
7 7 // It is executed once, input is the list of SUCCESSFULLY updated ref. // It is executed once, input is the list of SUCCESSFULLY updated ref.
8 // The error code is ignored.
8 // The exit code is ignored.
9 9 // Useful to send mails. // Useful to send mails.
10 10 // Warn: new_ref may not point to ref because of concurrent updates. // Warn: new_ref may not point to ref because of concurrent updates.
11 11 // TODO: Re-check man githooks and git-receive-pack! // TODO: Re-check man githooks and git-receive-pack!
File hooks/pre-receive changed (mode: 100755) (index fa6a704..322b781)
4 4 // //
5 5 // pre-receive hook // pre-receive hook
6 6 // Only logs ip and user // Only logs ip and user
7 //
7 // It can block the receiving.
8 8
9 9 error_reporting(E_ALL); error_reporting(E_ALL);
10 10 ini_set("track_errors", "On"); ini_set("track_errors", "On");
File hooks/update changed (mode: 100755) (index 375d036..d138e39)
6 6 // Inspired by update.sample in git package // Inspired by update.sample in git package
7 7 // It is executed before each ref is updated. // It is executed before each ref is updated.
8 8 // //
9 // TODO: what do we receive when a tag will be created?
10 //
11 9
12 10 error_reporting(E_ALL); error_reporting(E_ALL);
13 11 ini_set("track_errors", "On"); ini_set("track_errors", "On");
File tests/common.php changed (mode: 100644) (index 017697b..38e7549)
... ... if ($r !== TRUE) {
36 36 } }
37 37
38 38 rg_log("common.php finished"); rg_log("common.php finished");
39 rg_log('');
39 40
40 41 ?> ?>
File tests/state.php changed (mode: 100644) (index f60b6f5..79add54)
... ... rg_log_set_file("state.log");
15 15 require_once("common.php"); require_once("common.php");
16 16
17 17 $rg_sql_debug = 1; $rg_sql_debug = 1;
18 $rg_cache_debug = TRUE;
18 19
19 // check return for an invalid state
20 $r = rg_state_get($db, "asdsdsdf");
20 $k = 'key-' . time();
21
22 rg_log('');
23 rg_log_enter('Checking return for an non-existing key...');
24 $r = rg_state_get($db, $k);
21 25 if ($r !== "") { if ($r !== "") {
22 26 rg_log("Cannot get '' (but '$r') for an unknown key!"); rg_log("Cannot get '' (but '$r') for an unknown key!");
23 27 exit(1); exit(1);
24 28 } }
29 rg_log_exit();
30
31
32 rg_log('');
33 rg_log_enter('Setting key to "bau"...');
34 $r = rg_state_set($db, $k, "bau");
35 if ($r !== TRUE) {
36 rg_log("Cannot get a TRUE for setting 'a' to 'bau' ($r)!");
37 exit(1);
38 }
39 rg_log_exit();
40
25 41
26 $r = rg_state_set($db, "a", "bau");
42 rg_log('');
43 rg_log_enter('Setting key to "bau" (again)...');
44 $r = rg_state_set($db, $k, "bau");
27 45 if ($r !== TRUE) { if ($r !== TRUE) {
28 46 rg_log("Cannot get a TRUE for setting 'a' to 'bau' ($r)!"); rg_log("Cannot get a TRUE for setting 'a' to 'bau' ($r)!");
29 47 exit(1); exit(1);
30 48 } }
49 rg_log_exit();
31 50
32 $r = rg_state_set($db, "a", "cucu");
51
52 rg_log('');
53 rg_log_enter('Overwriting var with "cucu"...');
54 $r = rg_state_set($db, $k, "cucu");
33 55 if ($r !== TRUE) { if ($r !== TRUE) {
34 56 rg_log("Cannot get a TRUE for setting 'a' to 'cucu' ($r)!"); rg_log("Cannot get a TRUE for setting 'a' to 'cucu' ($r)!");
35 57 exit(1); exit(1);
36 58 } }
59 rg_log_exit();
60
37 61
38 $r = rg_state_get($db, "a");
62 rg_log('');
63 rg_log_enter('Checking if state is correctly now...');
64 $r = rg_state_get($db, $k);
39 65 if (strcmp($r, "cucu") != 0) { if (strcmp($r, "cucu") != 0) {
40 66 rg_log("Cannot get correct state ('$r' != 'cucu')!"); rg_log("Cannot get correct state ('$r' != 'cucu')!");
41 67 exit(1); exit(1);
42 68 } }
69 rg_log_exit();
43 70
44 rg_sql_close($db);
45 71
46 72 rg_log("OK!"); rg_log("OK!");
47 73 ?> ?>
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