Subject | Hash | Author | Date (UTC) |
---|---|---|---|
Cosmetic | 4b3f0dd52126a4a0e58766699b2dcce83770f822 | Catalin(ux) M. BOIE | 2019-10-26 05:31:35 |
Rework rg_git_merge because it failed | dc8dc39ac4235e9f6d4b9f7f6981bf9c4a10bc5f | Catalin(ux) M. BOIE | 2019-10-26 05:30:48 |
Compariso script updates | d56371208be824b919259f807d9e8aee41f74c4a | Catalin(ux) M. BOIE | 2019-10-26 05:30:09 |
css updates | e051981b55d28a8f37ff6aff9425e99912ff34da | Catalin(ux) M. BOIE | 2019-10-26 05:29:45 |
Comparison updates | e7a2d2b92380f1c4946ccd54113f1ca1b9b7216b | Catalin(ux) M. BOIE | 2019-10-26 05:29:03 |
TODO update | 25ee0cf19af35ff1c9a273528bf60f40be987dfe | Catalin(ux) M. BOIE | 2019-10-26 05:28:44 |
History update | 86c0575fd1ce8b8dd7729c909b7b45e488729f87 | Catalin(ux) M. BOIE | 2019-10-26 05:28:27 |
Big rework for rg_exec/rg_exec2 | 6b962257e2494217bcd528bcdbb39544b3809c14 | Catalin(ux) M. BOIE | 2019-10-26 05:28:09 |
Be more explicit and specify exactly the ssh command instead of 'ssh ... totp' | 3750e02fc5a0d75ba274c6ae9757e3d582348f51 | Catalin(ux) M. BOIE | 2019-10-25 02:54:52 |
Activating gzip compression in nginx sample file | 60a153c84f1a8ee68c4008d2cb512d3016c50499 | Catalin(ux) M. BOIE | 2019-10-25 02:33:13 |
totp: urlencode parameters when calling qrencode | 0b16e22978a8b5488e8f435a538dec07bb515476 | Catalin(ux) M. BOIE | 2019-10-19 03:53:20 |
/run/rocketgit-fpm/ -> /run to not create the dir | 13ff6e91698260ba5a41591275fa915e33baebc9 | Catalin(ux) M. BOIE | 2019-10-01 16:08:43 |
Compute repo disk size only for not deleted repos | 551d1798802853e5af1e12a1908cc10fbc432d17 | Catalin(ux) M. BOIE | 2019-09-30 22:08:27 |
git_log2listing big changes | e91fdef76511d586af30a3aa4b44273a1203bd36 | Catalin(ux) M. BOIE | 2019-09-30 19:54:38 |
typo | 0ef09cd6e02fa3bf79e0a26b887badc103b03d87 | Catalin(ux) M. BOIE | 2019-09-30 19:53:56 |
Some more error testing for http_confirm test | 1f36b1f55465c57e935b830e456d8f8044ec17da | Catalin(ux) M. BOIE | 2019-09-30 19:53:38 |
fixes: ignore some errors | 584eef4cbfb5427eaae34d72ea99b94ec4da29a4 | Catalin(ux) M. BOIE | 2019-09-30 19:52:45 |
cache: functional test for timeout | acaeca2fbceb797b0fb58f1c05bdd8d1f9025f25 | Catalin(ux) M. BOIE | 2019-09-30 19:51:35 |
Fixed rg_git_merge because it was broken | 797a976065420525f9f2c6a096ae306ffa5ed78d | Catalin(ux) M. BOIE | 2019-09-30 19:50:41 |
Disable GC when serving requests from web/fetch/push; we will do it from cron | fd16c96f5f0a6d24e0c6aaf45c5a02833579667a | Catalin(ux) M. BOIE | 2019-09-30 19:48:49 |
File | Lines added | Lines deleted |
---|---|---|
inc/mr.inc.php | 2 | 2 |
inc/struct.inc.php | 1 | 3 |
inc/user.inc.php | 6 | 8 |
inc/wh/http.inc.php | 1 | 0 |
File inc/mr.inc.php changed (mode: 100644) (index b6589ea..536155c) | |||
... | ... | function rg_mr_queue_process($db) | |
239 | 239 | function rg_mr_cosmetic($db, &$row) | function rg_mr_cosmetic($db, &$row) |
240 | 240 | { | { |
241 | 241 | $row['date_utc'] = gmdate("Y-m-d H:i", $row['itime']); | $row['date_utc'] = gmdate("Y-m-d H:i", $row['itime']); |
242 | $row['old_rev_short'] = substr($row['old_rev'], 0, 7); | ||
243 | $row['new_rev_short'] = substr($row['new_rev'], 0, 7); | ||
242 | $row['old_rev_short'] = substr($row['old_rev'], 0, RG_GIT_HASH_LEN); | ||
243 | $row['new_rev_short'] = substr($row['new_rev'], 0, RG_GIT_HASH_LEN); | ||
244 | 244 | ||
245 | 245 | if (!isset($row['who_nice'])) { | if (!isset($row['who_nice'])) { |
246 | 246 | if ($row['who'] == 0) { | if ($row['who'] == 0) { |
File inc/struct.inc.php changed (mode: 100644) (index 787bd53..c93525d) | |||
... | ... | function rg_sql_struct_run($db, $flags, $old_schema_ver) | |
723 | 723 | */ | */ |
724 | 724 | function rg_sql_struct_get_current_ver($db) | function rg_sql_struct_get_current_ver($db) |
725 | 725 | { | { |
726 | global $rg_sql_schema_ver; | ||
727 | |||
728 | rg_log_enter("sql_struct_get_current_ver"); | ||
726 | rg_log_enter('sql_struct_get_current_ver'); | ||
729 | 727 | ||
730 | 728 | $ret = FALSE; | $ret = FALSE; |
731 | 729 | while (1) { | while (1) { |
File inc/user.inc.php changed (mode: 100644) (index ce8d3c1..c50a7bf) | |||
... | ... | function rg_process_input($content_length, $content_encoding, &$err) | |
2177 | 2177 | break; | break; |
2178 | 2178 | } | } |
2179 | 2179 | ||
2180 | // TODO: I have working requests with cl > 0 and te = 'chunked' | ||
2180 | 2181 | if ($content_length == 0) { | if ($content_length == 0) { |
2181 | 2182 | if (strcasecmp($te, 'chunked') != 0) { | if (strcasecmp($te, 'chunked') != 0) { |
2182 | 2183 | $err = 'No Content-Length header and' | $err = 'No Content-Length header and' |
... | ... | function rg_process_input($content_length, $content_encoding, &$err) | |
2201 | 2202 | break; | break; |
2202 | 2203 | ||
2203 | 2204 | rg_log('DEBUG: have to read data from php://stdin'); | rg_log('DEBUG: have to read data from php://stdin'); |
2204 | sleep(3); | ||
2205 | // 'stdin' is not good because fd0 is associated with /dev/null | ||
2206 | 2205 | $f = @fopen('php://stdin', 'rb'); | $f = @fopen('php://stdin', 'rb'); |
2207 | $f2 = @fopen('php://input', 'rb'); | ||
2208 | rg_log('DEBUG: f=' . $f . ' f2=' . $f2); | ||
2209 | 2206 | if ($f === FALSE) { | if ($f === FALSE) { |
2210 | 2207 | rg_log('Cannot open stdin!'); | rg_log('Cannot open stdin!'); |
2211 | 2208 | break; | break; |
... | ... | function rg_process_input($content_length, $content_encoding, &$err) | |
2241 | 2238 | if (strcmp($content_encoding, 'gzip') == 0) { | if (strcmp($content_encoding, 'gzip') == 0) { |
2242 | 2239 | $ret = @gzdecode($ret); | $ret = @gzdecode($ret); |
2243 | 2240 | if ($ret === FALSE) { | if ($ret === FALSE) { |
2244 | rg_log('Cannot decompress!'); | ||
2241 | $err = 'Cannot decompress!'; | ||
2242 | rg_internal_error($err); | ||
2245 | 2243 | break; | break; |
2246 | 2244 | } | } |
2247 | 2245 | rg_log('DEBUG: after decompress[0-31]: ' | rg_log('DEBUG: after decompress[0-31]: ' |
... | ... | function rg_user_http_git($db, $rg, $paras) | |
2420 | 2418 | echo 'RocketGit: Info: == Welcome to RocketGit! ==' . "\n"; | echo 'RocketGit: Info: == Welcome to RocketGit! ==' . "\n"; |
2421 | 2419 | echo 'RocketGit: Info: you are connecting from IP ' . $rg['ip'] . '.' . "\n"; | echo 'RocketGit: Info: you are connecting from IP ' . $rg['ip'] . '.' . "\n"; |
2422 | 2420 | echo 'RocketGit: Info: date/time: ' . gmdate('Y-m-d H:i:s') | echo 'RocketGit: Info: date/time: ' . gmdate('Y-m-d H:i:s') |
2423 | . ', debug id ' . $rg_log_sid . '.' . "\n"; | ||
2421 | . ' (UTC), debug id ' . $rg_log_sid . '.' . "\n"; | ||
2424 | 2422 | echo 'RocketGit: Info: Use user \'guest\' with any' | echo 'RocketGit: Info: Use user \'guest\' with any' |
2425 | 2423 | . ' password if you want to push anonymously.' . "\n"; | . ' password if you want to push anonymously.' . "\n"; |
2426 | 2424 | echo 'RocketGit: Info: Append the login token or the' | echo 'RocketGit: Info: Append the login token or the' |
... | ... | function rg_user_http_git($db, $rg, $paras) | |
2466 | 2464 | rg_git_info_pack("\x02", 'you are connecting from IP ' | rg_git_info_pack("\x02", 'you are connecting from IP ' |
2467 | 2465 | . $rg['ip'] . '.'); | . $rg['ip'] . '.'); |
2468 | 2466 | rg_git_info_pack("\x02", 'date/time: ' . gmdate('Y-m-d H:i:s') | rg_git_info_pack("\x02", 'date/time: ' . gmdate('Y-m-d H:i:s') |
2469 | . ', debug id ' . $rg_log_sid . '.'); | ||
2467 | . ' (UTC), debug id ' . $rg_log_sid . '.'); | ||
2470 | 2468 | // If user does not connect to the correct URL, correct them | // If user does not connect to the correct URL, correct them |
2471 | 2469 | if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) | if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
2472 | 2470 | rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] | rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
... | ... | function rg_user_http_git($db, $rg, $paras) | |
2495 | 2493 | rg_git_info_pack("\x02", 'you are connecting from IP ' | rg_git_info_pack("\x02", 'you are connecting from IP ' |
2496 | 2494 | . $rg['ip'] . '.'); | . $rg['ip'] . '.'); |
2497 | 2495 | rg_git_info_pack("\x02", 'date/time: ' . gmdate('Y-m-d H:i:s') | rg_git_info_pack("\x02", 'date/time: ' . gmdate('Y-m-d H:i:s') |
2498 | . ', debug id ' . $rg_log_sid . '.'); | ||
2496 | . ' (UTC), debug id ' . $rg_log_sid . '.'); | ||
2499 | 2497 | // If user does not connect to the correct URL, correct them | // If user does not connect to the correct URL, correct them |
2500 | 2498 | if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) | if (!empty($host) && (strcasecmp($host, $rg['hostname']) != 0)) |
2501 | 2499 | rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] | rg_git_info_pack("\x02", 'Please use ' . $rg['hostname'] |
File inc/wh/http.inc.php changed (mode: 100644) (index 778f182..69a2353) | |||
... | ... | rg_event_register_functions($rg_wh_http_functions); | |
14 | 14 | ||
15 | 15 | /* | /* |
16 | 16 | * Helper for rg_wh_http_send | * Helper for rg_wh_http_send |
17 | * TODO: make this generic! | ||
17 | 18 | */ | */ |
18 | 19 | function rg_wh_http_send_one($db, $event) | function rg_wh_http_send_one($db, $event) |
19 | 20 | { | { |