List of commits:
Subject Hash Author Date (UTC)
Use rg_exec in tests to polute the output df300f967ebfaa70499d5b599dcb1dfae02a89f3 Catalin(ux) M. BOIE 2017-04-29 22:56:05
Send errors on sterr instead of stdout for ssh commands 006772c3e526e6cdbc92a52b452842bf8b46c4eb Catalin(ux) M. BOIE 2017-04-29 22:53:25
Added samples config files in the doc folder 6dad3cb75cba2203fe2f091285a708822192f306 Catalin(ux) M. BOIE 2017-04-29 15:12:05
Added sample nginx config file c7c1a7057ddf6fcca6e02ee63d46777bfa94c8bd Catalin(ux) M. BOIE 2017-04-29 14:46:56
Improved error reporting when php-fpm receives chunked encoding fe158537256add633f02076e8359cd8f2267d54f Catalin(ux) M. BOIE 2017-04-29 14:46:18
Get rid of strage rewriting in we server config 8f845f11e9edfa5291965f570a5c971056416b62 Catalin(ux) M. BOIE 2017-04-29 14:43:23
Do not allow anyone to activate the debug (rg_debug). 0a296ec27e6988e91db8cac50e53345a8bce1c81 Catalin(ux) M. BOIE 2017-04-26 20:09:06
Forgot to add diff_too_big file b6297ed622b8fd1562f6ab05b279290367612b89 Catalin(ux) M. BOIE 2017-04-26 20:08:29
Added a functional test for http.postBuffer problem ff650d024cd5f82f796a225c204e156c9e1213f4 Catalin(ux) M. BOIE 2017-04-26 20:07:47
Added a 'Thanks' section e7c9731dd32fe48befc58bf08044fd5649f523f4 Catalin(ux) M. BOIE 2017-04-26 20:06:49
Some big fixes for push over http 56ebd277c71c50e40af9465cd3867dc885f054b9 Catalin(ux) M. BOIE 2017-04-26 20:00:53
Do not recursively set the rights - not needed a9edce3101ad2450b67a575265827aa69efd5c63 Catalin(ux) M. BOIE 2017-04-17 07:16:01
Cosmetic changes 4bb36da63972e7e152e4e476e84ed55baba02911 Catalin(ux) M. BOIE 2017-04-15 09:29:09
Add possibility for admin to limit the git log --patch limit 1865405c40ebe92aa1bc6fd4569dcbb0e3af476c Catalin(ux) M. BOIE 2017-04-15 09:28:46
Silent curl in API functional test e6808bc97d201fd4944de0ad2982c3090ae4743a Catalin(ux) M. BOIE 2017-04-15 06:31:04
Fixed a lot of tests which used time() for different fields and sometime lost the time race 6a61493189d07110d3c5fdbe34ea0725d5abbd3b Catalin(ux) M. BOIE 2017-04-15 06:25:40
Fixed the crash with big diffs by setting a limit 788e15942d8272685764a25b640eba2c07046437 Catalin(ux) M. BOIE 2017-04-15 06:24:30
Allow .well-known folder access 90519cd03bf64839d1a9fc2497e58bd63d8ce6f3 Catalin(ux) M. BOIE 2017-04-12 16:50:16
When an un-auth user is visiting a user page with no repo, do not invite to create a repo 6904e1eac3f46c281ae6b4757bcaa16d2acc6169 Catalin(ux) M. BOIE 2017-03-27 15:23:52
Added a 'push' target in Makefile to not forget to push tags... 92a9b78e26d8a3e7b466f5aa45678dd2db8d4310 Catalin(ux) M. BOIE 2017-03-26 14:29:55
Commit df300f967ebfaa70499d5b599dcb1dfae02a89f3 - Use rg_exec in tests to polute the output
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-04-29 22:56
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-04-29 22:56
Parent(s): 006772c3e526e6cdbc92a52b452842bf8b46c4eb
Signing key:
Tree: 4a10866bc65b066f964c33a2fb5a39ee59d76db8
File Lines added Lines deleted
tests/helpers.inc.php 8 3
tests/http.inc.php 3 3
tests/user.php 3 3
tests/wh_http.php 9 9
File tests/helpers.inc.php changed (mode: 100644) (index b1172c9..10cade7)
... ... function rg_test_upload_ssh_key($db, $rg_ui, $key_name, $good_sid)
276 276 unlink('keys/' . $key_name); unlink('keys/' . $key_name);
277 277 if (file_exists('keys/' . $key_name . '.pub')) if (file_exists('keys/' . $key_name . '.pub'))
278 278 unlink('keys/' . $key_name . '.pub'); unlink('keys/' . $key_name . '.pub');
279 $out = shell_exec("ssh-keygen -t rsa -N '' -b 4096 -C \"Key for RocketGit\""
280 . " -f keys/" . escapeshellarg($key_name) . " </dev/null");
279 $r = rg_exec("ssh-keygen -t rsa -N '' -b 4096 -C \"Key for RocketGit\""
280 . " -f keys/" . escapeshellarg($key_name) . " </dev/null",
281 '', FALSE, FALSE);
282 if ($r['ok'] != 1) {
283 rg_log('Cannot generate key: ' . $r['stderr']);
284 exit(1);
285 }
281 286 if (!file_exists("keys/" . $key_name . ".pub")) { if (!file_exists("keys/" . $key_name . ".pub")) {
282 rg_log("Could not generate ssh key: " . $out);
287 rg_log("Could not find the ssh key!");
283 288 exit(1); exit(1);
284 289 } }
285 290
File tests/http.inc.php changed (mode: 100644) (index 4b78082..c33e330)
... ... function do_req($url, &$data, &$headers)
88 88 $ret['body'] = str_replace('<xss>', '|xss|', $ret['body']); $ret['body'] = str_replace('<xss>', '|xss|', $ret['body']);
89 89 file_put_contents("http.tidy.in", $ret['body']); file_put_contents("http.tidy.in", $ret['body']);
90 90 $cmd = "tidy -errors -utf8 -file http.tidy.out http.tidy.in"; $cmd = "tidy -errors -utf8 -file http.tidy.out http.tidy.in";
91 system($cmd, $ec);
92 if ($ec != 0) {
93 rg_log('tidy ec=' . $ec);
91 $r = rg_exec($cmd, '', FALSE, FALSE);
92 if ($r['ok'] != 1) {
93 rg_log_ml('tidy error: ' . $r['stderr']);
94 94 rg_log_ml(file_get_contents('http.tidy.out')); rg_log_ml(file_get_contents('http.tidy.out'));
95 95 exit(1); exit(1);
96 96 } }
File tests/user.php changed (mode: 100644) (index d8f911c..a796078)
... ... if ($uid5 === FALSE) {
193 193 exit(1); exit(1);
194 194 } }
195 195
196 $r = system("mkdir -p ubase/users/u/s/user5");
197 if ($r === FALSE) {
198 rg_log("Cannot make fixes simulation dir ($php_errormsg)!");
196 $r = rg_exec("mkdir -p ubase/users/u/s/user5", '', FALSE, FALSE);
197 if ($r['ok'] != 1) {
198 rg_log('Cannot make fixes simulation dir: ' . $r['stderr'] . '!');
199 199 exit(1); exit(1);
200 200 } }
201 201 $r = rg_fixes_user_index_by_id($db); $r = rg_fixes_user_index_by_id($db);
File tests/wh_http.php changed (mode: 100644) (index 85daba0..839572c)
... ... rg_log('port1=' . $port1 . ' port2=' . $port2 . ' port3=' . $port3);
27 27
28 28 function clean() function clean()
29 29 { {
30 system('fuser -k -9 wh-stunnel-1.log 1>/dev/null 2>&1');
31 system('fuser -k -9 wh-stunnel-2.log 1>/dev/null 2>&1');
32 system('fuser -k -9 wh-stunnel-3.log 1>/dev/null 2>&1');
30 rg_exec('fuser -k -9 wh-stunnel-1.log', '', FALSE, FALSE);
31 rg_exec('fuser -k -9 wh-stunnel-2.log', '', FALSE, FALSE);
32 rg_exec('fuser -k -9 wh-stunnel-3.log', '', FALSE, FALSE);
33 33
34 34 @unlink('wh-stunnel.conf-1.tmp'); @unlink('wh-stunnel.conf-1.tmp');
35 35 @unlink('wh-stunnel.conf-2.tmp'); @unlink('wh-stunnel.conf-2.tmp');
 
... ... register_shutdown_function('clean');
40 40
41 41 rg_log(''); rg_log('');
42 42 rg_log('Generating certificates...'); rg_log('Generating certificates...');
43 $r = shell_exec('./ca.sh wh');
44 if (!strstr($r, 'CA_SH_OK')) {
45 rg_log_ml('r: ' . print_r($r, TRUE));
43 $r = rg_exec('./ca.sh wh', '', FALSE, FALSE);
44 if (!strstr($r['data'], 'CA_SH_OK')) {
45 rg_log_ml('data: ' . $r['data']);
46 46 rg_log('Cannot generate certificates!'); rg_log('Cannot generate certificates!');
47 47 exit(1); exit(1);
48 48 } }
 
... ... if ($pid == -1) {
80 80 exit(1); exit(1);
81 81 } }
82 82 if ($pid == 0) { //child if ($pid == 0) { //child
83 $r = exec('stunnel wh-stunnel.conf-1.tmp 2>/dev/null');
83 rg_exec('stunnel wh-stunnel.conf-1.tmp 1>wh-stunnel-1-1.log 2>wh-stunnel-1-2.log', '', FALSE, FALSE);
84 84 exit(0); exit(0);
85 85 } }
86 86 rg_log('Started stunnel with pid ' . $pid); rg_log('Started stunnel with pid ' . $pid);
 
... ... if ($pid == -1) {
94 94 exit(1); exit(1);
95 95 } }
96 96 if ($pid == 0) { //child if ($pid == 0) { //child
97 $r = exec('stunnel wh-stunnel.conf-2.tmp 2>/dev/null');
97 rg_exec('stunnel wh-stunnel.conf-2.tmp 1>wh-stunnel-2-1.log 2>wh-stunnel-2-2.log', '', FALSE, FALSE);
98 98 exit(0); exit(0);
99 99 } }
100 100 rg_log('Started stunnel with pid ' . $pid); rg_log('Started stunnel with pid ' . $pid);
 
... ... if ($pid == -1) {
108 108 exit(1); exit(1);
109 109 } }
110 110 if ($pid == 0) { //child if ($pid == 0) { //child
111 $r = exec('stunnel wh-stunnel.conf-3.tmp 2>/dev/null');
111 rg_exec('stunnel wh-stunnel.conf-3.tmp 1>wh-stunnel-3-1.log 2>wh-stunnel-3-2.log', '', FALSE, FALSE);
112 112 exit(0); exit(0);
113 113 } }
114 114 rg_log('Started stunnel with pid ' . $pid); rg_log('Started stunnel with pid ' . $pid);
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