xaizek / rocketgit (License: AGPLv3+) (since 2018-12-09)
Light and fast Git hosting solution suitable to serve both as a hub or as a personal code storage with its tickets, pull requests, API and much more.
Commit ab0c22fb84e13b9699b45ca8bc8181dd15f7a4a5

Corrected typos and made clear some comments/hints
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-09-25 20:23
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-09-25 20:23
Parent(s): feee2b816a64c9032e2fc9c37bb1a8216d43bc62
Signing key:
Tree: f8d88302d206a8b6375d12122da139b668d1b9aa
File Lines added Lines deleted
inc/workers.inc.php 4 3
root/themes/default/user/settings/workers/hints.html 2 2
tests/ssh.php 1 1
File inc/workers.inc.php changed (mode: 100644) (index 7e77f17..43096a2)
... ... function rg_worker_sort_alpha($a, $b)
118 118 } }
119 119
120 120 /* /*
121 * Loads info about a worker
121 * Loads the list of workers for a user
122 122 */ */
123 123 function rg_worker_list($db, $uid) function rg_worker_list($db, $uid)
124 124 { {
 
... ... function rg_worker_list_all($db, $uid)
192 192 */ */
193 193 function rg_worker_find_by_id($db, $uid, $id) function rg_worker_find_by_id($db, $uid, $id)
194 194 { {
195 rg_log_enter('worker_find_by_uid uid=' . $uid . ' id=' . $id);
195 rg_log_enter('worker_find_by_id uid=' . $uid . ' id=' . $id);
196 196
197 197 $ret = -1; $ret = -1;
198 198 while (1) { while (1) {
 
... ... function rg_worker_remove($db, $uid, $list)
475 475
476 476
477 477 /* /*
478 * Workers - add
478 * Workers - add/edit
479 479 */ */
480 480 function rg_worker_add_high_level($db, $rg, $op, $paras) function rg_worker_add_high_level($db, $rg, $op, $paras)
481 481 { {
 
... ... function rg_worker_add_high_level($db, $rg, $op, $paras)
558 558 $ret .= rg_template('user/settings/workers/add_ok.html', $ret .= rg_template('user/settings/workers/add_ok.html',
559 559 $rg, TRUE /*xss*/); $rg, TRUE /*xss*/);
560 560
561 // Load default values for the next 'add' operation
561 562 $rg['worker']['id'] = 0; $rg['worker']['id'] = 0;
562 563 $rg['worker']['name'] = ''; $rg['worker']['name'] = '';
563 564 $rg['worker']['key'] = rg_id(32); $rg['worker']['key'] = rg_id(32);
File root/themes/default/user/settings/workers/hints.html changed (mode: 100644) (index b0f9d4e..3dba743)
1 1 <br /> <br />
2 Workers are used to process build jobs.<br />
3 Global workers are available for building at rocketgit.com, so,
2 Workers are used to process build and deployment jobs.<br />
3 Global workers are available for building at rocketgit.com, so
4 4 just configure a build webhook.<br /> just configure a build webhook.<br />
5 5 Cost - it is used to decide on which worker to send a job; bigger = less Cost - it is used to decide on which worker to send a job; bigger = less
6 6 chances to choose it.<br /> chances to choose it.<br />
File tests/ssh.php changed (mode: 100644) (index 5753a7e..0f65da5)
... ... $sql = "UPDATE scratch_codes SET sc = '0' || substring(sc from 1 for 7)"
176 176 . " WHERE uid = " . $rg_ui['uid']; . " WHERE uid = " . $rg_ui['uid'];
177 177 $res = rg_sql_query($db, $sql); $res = rg_sql_query($db, $sql);
178 178 rg_sql_free_result($res); rg_sql_free_result($res);
179 // we want to test with a short code, so, insert one and flush cache
179 // we want to test with a short code, so insert one and flush cache
180 180 $key = 'user::' . $rg_ui['uid'] . '::login_tokens::sc'; $key = 'user::' . $rg_ui['uid'] . '::login_tokens::sc';
181 181 rg_cache_unset($key, 0); rg_cache_unset($key, 0);
182 182 foreach ($sc as &$t) foreach ($sc as &$t)
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://code.reversed.top/user/xaizek/rocketgit

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/rocketgit

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master