List of commits:
Subject Hash Author Date (UTC)
Hooks: Mostly cosmetic 3633af7d937f7c9c7c0c33cdc3ad9897aab8becd Catalin(ux) M. BOIE 2021-10-21 06:04:02
Added RGFS for packages e0573aadcff81694d38ee448326964bddf0c3c13 Catalin(ux) M. BOIE 2021-10-21 06:02:37
Container changes cb3c4a84e2abc3a4b206925b60fdf4524e0379de Catalin(ux) M. BOIE 2021-10-21 06:01:25
Lots of html/css changes bde37682fac058f68806b3342ba043a2f72458ba Catalin(ux) M. BOIE 2021-10-21 06:00:29
Lots of tests updated 40e01f4db4d341d4e2dceb4407ea7d6ff523ac9e Catalin(ux) M. BOIE 2021-10-21 06:00:02
Big changes to add rpm packages repositories 5e07ff440d6ad7f0ef9900a634b2f39f0e7fa1e4 Catalin(ux) M. BOIE 2021-10-21 05:59:26
Cosmetic 02376344f7d7d321d824ab7978de2ad49c007167 Catalin(ux) M. BOIE 2021-05-23 12:57:06
Added FIDO2 support for SSH 04186abe13896ad4f4ea7126691d0a2b1798de1a Catalin(ux) M. BOIE 2021-05-23 12:30:43
ssh: show the id of the key both on web and when connecting ab95ccfa2819d6ac9f427209ee61c75aad8a3661 Catalin(ux) M. BOIE 2021-05-23 10:52:44
Some events are doing some queries, and we need to cover them in transaction, not only the subevents 4768ffec303961971cc0c3732a24e858f47dd381 Catalin(ux) M. BOIE 2020-12-15 07:33:36
Added rate limit for ssh and git connections b667130e6c5721a3d30193863a5defd8bbff50f1 Catalin(ux) M. BOIE 2020-11-30 10:49:27
cosmetic abe44edadda9da7c639b7bd8c9e13e6058555669 Catalin(ux) M. BOIE 2020-11-30 10:21:01
gpg functions and test ecb9e05c99a2b73edfba5014329e362d8c6e9246 Catalin(ux) M. BOIE 2020-11-09 07:38:11
Stats page is not rendered for bots. 29ca3f62ac460b64eb0a10fbb8bdfdf4a1767dc5 Catalin(ux) M. BOIE 2020-10-13 05:48:43
Added rate limit options 60e939a52577a01603f9f386ffaf1a9712f99ab6 Catalin(ux) M. BOIE 2020-10-07 05:02:25
Improved bots list and clean old entries 9da0a014040753734beabfecb298b8956fc25fe3 Catalin(ux) M. BOIE 2020-10-05 06:34:43
builder: use secrets only if available 4fe47afc60435508ad90f62c51d489ac3c20b4d0 Catalin(ux) M. BOIE 2020-08-28 07:29:14
worker: use secrets only if available 5371e918e294a46cc38c765371a1caf7a3083eef Catalin(ux) M. BOIE 2020-08-28 07:28:12
builder: do not break meta variable 1d8207b1a782ab039406dbd087cdc9bb5ea0b898 Catalin(ux) M. BOIE 2020-08-28 07:27:48
Whitespace 86086337c5323b073f517bc59c18aba0808fb4f3 Catalin(ux) M. BOIE 2020-08-24 07:22:13
Commit 3633af7d937f7c9c7c0c33cdc3ad9897aab8becd - Hooks: Mostly cosmetic
Author: Catalin(ux) M. BOIE
Author date (UTC): 2021-10-21 06:04
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2021-10-21 06:04
Parent(s): e0573aadcff81694d38ee448326964bddf0c3c13
Signer:
Signing key:
Signing status: N
Tree: ac5cc3a0e4ca95c764c81afbc0e5f277e20b504f
File Lines added Lines deleted
hooks/pre-commit 0 1
hooks/pre-receive 3 2
hooks/update 8 12
File hooks/pre-commit changed (mode: 100755) (index 0293e0d..363df8b)
... ... else
46 46 $diff = sprintf("%u", (microtime(TRUE) - $_start) * 1000); $diff = sprintf("%u", (microtime(TRUE) - $_start) * 1000);
47 47 rg_log("Took " . $diff . "ms."); rg_log("Took " . $diff . "ms.");
48 48
49 ?>
File hooks/pre-receive changed (mode: 100755) (index 58e0dc5..768937a)
... ... rg_log_set_file($rg_log_dir . "/hook_pre-receive.log");
29 29
30 30 $repo_path = getenv('ROCKETGIT_REPO_PATH'); $repo_path = getenv('ROCKETGIT_REPO_PATH');
31 31 $login_uid = getenv('ROCKETGIT_LOGIN_UID'); $login_uid = getenv('ROCKETGIT_LOGIN_UID');
32 $ip = getenv('ROCKETGIT_IP');
32 rg_ip_set(getenv('ROCKETGIT_IP'));
33 rg_debug_set(getenv('ROCKETGIT_DEBUG'));
33 34 $git_host = getenv('ROCKETGIT_HOST'); $git_host = getenv('ROCKETGIT_HOST');
34 35 $show_info = getenv('ROCKETGIT_SHOW_INFO'); $show_info = getenv('ROCKETGIT_SHOW_INFO');
35 36
 
... ... umask(0077);
41 42
42 43 if ($show_info) { if ($show_info) {
43 44 rg_git_info('', '== Welcome to RocketGit! =='); rg_git_info('', '== Welcome to RocketGit! ==');
44 rg_git_info('', 'you are connecting from IP ' . $ip . '.');
45 rg_git_info('', 'you are connecting from IP ' . rg_ip() . '.');
45 46 rg_git_info('', 'date/time: ' . gmdate('Y-m-d H:i:s') rg_git_info('', 'date/time: ' . gmdate('Y-m-d H:i:s')
46 47 . ', debug id ' . $rg_log_sid . '.'); . ', debug id ' . $rg_log_sid . '.');
47 48 } }
File hooks/update changed (mode: 100755) (index 4f71c9a..95023a2)
... ... $a = $rg;
37 37 $a['login_uid'] = sprintf("%u", getenv("ROCKETGIT_LOGIN_UID")); $a['login_uid'] = sprintf("%u", getenv("ROCKETGIT_LOGIN_UID"));
38 38 $a['login_url'] = getenv('ROCKETGIT_LOGIN_URL'); $a['login_url'] = getenv('ROCKETGIT_LOGIN_URL');
39 39 $a['repo_id'] = sprintf("%u", getenv("ROCKETGIT_REPO_ID")); $a['repo_id'] = sprintf("%u", getenv("ROCKETGIT_REPO_ID"));
40 $a['ip'] = getenv("ROCKETGIT_IP");
41 $a['namespace'] = getenv("GIT_NAMESPACE");
42 40 $a['repo_path'] = getenv("ROCKETGIT_REPO_PATH"); $a['repo_path'] = getenv("ROCKETGIT_REPO_PATH");
43 41 $a['repo_name'] = getenv("ROCKETGIT_REPO_NAME"); $a['repo_name'] = getenv("ROCKETGIT_REPO_NAME");
44 42 $a['repo_uid'] = sprintf("%u", getenv("ROCKETGIT_REPO_UID")); $a['repo_uid'] = sprintf("%u", getenv("ROCKETGIT_REPO_UID"));
45 43 $a['repo_clone_url_http'] = getenv('ROCKETGIT_REPO_CLONE_URL'); $a['repo_clone_url_http'] = getenv('ROCKETGIT_REPO_CLONE_URL');
44 $a['repo_username'] = getenv("ROCKETGIT_REPO_USERNAME");
45 rg_ip_set(getenv('ROCKETGIT_IP'));
46 $a['namespace'] = getenv("GIT_NAMESPACE");
46 47 $a['log_sid'] = $rg_log_sid; $a['log_sid'] = $rg_log_sid;
48 rg_debug_set(getenv('ROCKETGIT_DEBUG'));
47 49
48 50 rg_log("Start a=" . rg_array2string($a)); rg_log("Start a=" . rg_array2string($a));
49 51 rg_log("_SERVER: " . rg_array2string($_SERVER)); rg_log("_SERVER: " . rg_array2string($_SERVER));
 
... ... rg_sql_app('rg-hook-update-' . $a['log_sid']);
52 54 $db = rg_sql_open($rg_sql); $db = rg_sql_open($rg_sql);
53 55
54 56 if ($a['login_uid'] > 0) { if ($a['login_uid'] > 0) {
55 $a['ui'] = rg_user_info($db, $a['login_uid'], '', '');
56 if ($a['ui']['ok'] != 1)
57 $ui = rg_user_info($db, $a['login_uid'], '', '');
58 if ($ui['ok'] != 1)
57 59 rg_git_fatal('internal error'); rg_git_fatal('internal error');
58 if ($a['ui']['exists'] != 1)
60 if ($ui['exists'] != 1)
59 61 rg_git_fatal('user does not exists'); rg_git_fatal('user does not exists');
60 } else {
61 $a['ui'] = array(
62 'uid' => 0,
63 'username' => 'anonymous user',
64 'organization' => 0
65 );
62 rg_ui_login_set($ui);
66 63 } }
67 64
68 65 umask(0077); umask(0077);
 
... ... if (strncmp($a['refname'], "refs/tags/", 10) == 0) {
103 100
104 101 rg_prof_end("hook-update"); rg_prof_end("hook-update");
105 102 rg_prof_log(); rg_prof_log();
106 ?>
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