catalinux / rgfs (public) (License: GPLv3) (since 2020-11-11) (hash sha1)
Allows mapping of RocketGit storage area into a local directory
List of commits:
Subject Hash Author Date (UTC)
Added job_id variable 9ab34e796d0f5494d97d1b9f9fff52e6a9f27e8c Catalin(ux) M. BOIE 2020-12-04 17:30:10
Create a function to send generic vars and use it 97fa7f7a9f4af7c9e7bf3579d1437dfc59c29825 Catalin(ux) M. BOIE 2020-11-30 17:45:17
Wrong lenght passed c642d9387496543f4fb824fad6cd2590328d83b4 Catalin(ux) M. BOIE 2020-11-30 17:33:08
Allow sending repo_id 160f9d2f3957ba5639377e8d5bdc15744dac78a2 Catalin(ux) M. BOIE 2020-11-30 13:36:55
More debugging 1b562b79df09000cb40d2e91aa069636e9fd5e55 Catalin(ux) M. BOIE 2020-11-27 07:04:43
Added support for uid and head 2c9ae749a048d990ce24aa389439056c8ab0e836 Catalin(ux) M. BOIE 2020-11-27 06:29:37
Added chmod 82a9f7db95a0327bd0d97a58a27ce6432fdf6790 Catalin(ux) M. BOIE 2020-11-16 18:53:49
implemented chown d3862312d2900e96957c0734b5f27d0851d2a19a Catalin(ux) M. BOIE 2020-11-16 18:31:35
Lots of improvements 4953574e14ffba41e05e897fb94771f0ac7bab44 Catalin(ux) M. BOIE 2020-11-15 16:46:04
Allow verbose debug cee91423dda669c580b84451d3b846b3e7ef3038 Catalin(ux) M. BOIE 2020-11-15 12:11:04
Small bug caused by an old way to pack path ad3501ea5b7b112f0760f5aca247275e974edaff Catalin(ux) M. BOIE 2020-11-15 11:59:55
Lots of improvements 9275d4bc7be78518ac7bd2c3aa9cfb946a2969ad Catalin(ux) M. BOIE 2020-11-15 10:40:44
Lots of cleanups 2998ff2dcb74565887986fb7167e65e4fdf6d173 Catalin(ux) M. BOIE 2020-11-14 19:23:09
added utimens b5c24acf3ff86a51a7a49fec1eaf8eb65ae77bbb Catalin(ux) M. BOIE 2020-11-14 16:09:29
Improved debug f9bdf71667d0c77d4fcb4fa6e7792fd2d4c60712 Catalin(ux) M. BOIE 2020-11-13 18:57:48
Allow pushing a name and a repo id 9b48c3ae2a059a1ecd84caf44cea6c551175dd46 Catalin(ux) M. BOIE 2020-11-12 16:14:02
Send also the pkg_repo_id parameter 866c8063866effdabe0aa76fcfb9cc2b3d61b67a Catalin(ux) M. BOIE 2020-11-12 07:54:07
Now we can pass parameters by env 8352d8d09714a3c2af7550ad55517bfa8590a309 Catalin(ux) M. BOIE 2020-11-12 04:48:19
Inistial commit e51779259596117c80f6e7961f4387fdd48f820a Catalin(ux) M. BOIE 2020-11-11 08:18:38
Commit 9ab34e796d0f5494d97d1b9f9fff52e6a9f27e8c - Added job_id variable
Author: Catalin(ux) M. BOIE
Author date (UTC): 2020-12-04 17:30
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2020-12-04 17:30
Parent(s): 97fa7f7a9f4af7c9e7bf3579d1437dfc59c29825
Signing key:
Tree: 9c03772fa0d25f1945ddb7e08329f0a218a30a99
File Lines added Lines deleted
rgfs.c 13 2
File rgfs.c changed (mode: 100644) (index 39d0b0d..b6c9e23)
... ... static int rgfs_log_fd = 2;
36 36 static char *rgfs_uid = NULL; static char *rgfs_uid = NULL;
37 37 static char *rgfs_repo_id = NULL; static char *rgfs_repo_id = NULL;
38 38 static char *rgfs_head = NULL; static char *rgfs_head = NULL;
39 static char *rgfs_job_id = NULL;
39 40
40 41 static gnutls_session_t session; static gnutls_session_t session;
41 42 static unsigned char connected = 0; static unsigned char connected = 0;
 
... ... static int rgfs_tls(void)
394 395 break; break;
395 396 } }
396 397
398 if (rgfs_job_id) {
399 r = rgfs_send_gen_var("job_id", rgfs_job_id);
400 if (r <= 0)
401 break;
402 }
403
397 404 ret = 0; ret = 0;
398 405 } while (0); } while (0);
399 406
 
... ... int main(int argc, char *argv[])
1288 1295 if (s) if (s)
1289 1296 rgfs_head = s; rgfs_head = s;
1290 1297
1298 s = getenv("RGFS_JOB_ID");
1299 if (s)
1300 rgfs_job_id = s;
1301
1291 1302 xlog("name=%s server=%s port=%d url=%s pkg_repo_id=%u uid=%s repo_id=%s" xlog("name=%s server=%s port=%d url=%s pkg_repo_id=%u uid=%s repo_id=%s"
1292 " head=%s\n",
1303 " head=%s job_id=%s\n",
1293 1304 rgfs_name, rgfs_server, rgfs_port, rgfs_url, rgfs_pkg_repo_id, rgfs_name, rgfs_server, rgfs_port, rgfs_url, rgfs_pkg_repo_id,
1294 rgfs_uid, rgfs_repo_id, rgfs_head);
1305 rgfs_uid, rgfs_repo_id, rgfs_head, rgfs_job_id);
1295 1306
1296 1307 if (gnutls_check_version("3.4.6") == NULL) { if (gnutls_check_version("3.4.6") == NULL) {
1297 1308 xlog("GnuTLS 3.4.6 or later is required!\n"); xlog("GnuTLS 3.4.6 or later is required!\n");
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/rgfs

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/catalinux/rgfs

Clone this repository using git:
git clone git://git.rocketgit.com/user/catalinux/rgfs

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