List of commits:
Subject Hash Author Date (UTC)
Small changes regarding more debugging in several places 03407e5f7562ac997612c56fd20fe067162ea8de Catalin(ux) M. BOIE 2017-03-19 19:42:58
Some improvements for comparison e3a06443fba2c22009f0bde4ea9c3f201a9803cb Catalin(ux) M. BOIE 2017-03-19 19:41:53
Functional tests improvements 6b82e5a1eaf800a15e42840bc9c889e32a7532f0 Catalin(ux) M. BOIE 2017-03-19 19:40:21
Do not report security violations generated by the functional tests 6028674aa0153d4bc1c46999516f87a6019df6d2 Catalin(ux) M. BOIE 2017-03-19 19:38:23
Admin init form: pass next to user to be able to be cached by browsers c3d9974e92a03a3ec4d093188842330bb7a0cad0 Catalin(ux) M. BOIE 2017-03-17 23:41:10
SELinux: Allow php-fpm to create log files 94962a7b15e91acfa609663185ceab365a89ac98 Catalin(ux) M. BOIE 2017-03-17 23:39:01
Allow anonymous push when using git:// or ssh:// 46d947874f12b7ac7f1ac3fa552f703c498082b2 Catalin(ux) M. BOIE 2017-03-02 22:17:48
tests: now we keep the state c75b10325c24e32b699f22a13c9374e80fe45a2b Catalin(ux) M. BOIE 2017-03-02 22:05:43
No need anymore for usr/lib 58a51962e9025457419fac5051d0840732aeff6c Catalin(ux) M. BOIE 2017-03-02 21:34:11
If nothing found in a folder, xargs will fail 9ea8a34050bc2ce4c53e942834f34eaffa5d4f06 Catalin(ux) M. BOIE 2017-03-02 19:50:55
Bump version to 0.66 4f63811dd434780c4342c087757b6003a9c20c9e Catalin(ux) M. BOIE 2017-03-02 17:54:40
Minor change on how do we call fgetcsv 175715a4739e8a33cbd939d847eed9d3d24e24be Catalin(ux) M. BOIE 2017-03-02 17:53:57
Cosmetic changes for comparison 780b0e99bf591c5081eed9ca9cbe2623d3cab22c Catalin(ux) M. BOIE 2017-03-02 17:53:29
Added a custom csv line parsing (partial) for when the program will be re-written in C 746560420021d148c58578af77c9f7bb05cc5918 Catalin(ux) M. BOIE 2017-03-02 17:53:05
Do not test doit != 1 because it can be a bigger number (thanks w3af!) 214dfb3cd1c7e5a3b5a0353a4c9f9b63cb6545f2 Catalin(ux) M. BOIE 2017-03-02 17:51:56
TODO add/delete 1c8ffca4d65be53acdfe21d4c3c0888707f5d10b Catalin(ux) M. BOIE 2017-03-02 17:50:28
Disable TRACE command in Apache sample conf 3c59e1ef1c87689940eb2bc0c73895101815471b Catalin(ux) M. BOIE 2017-03-02 17:47:13
Return error if a mr cannot be found 3eea0ed2eb3b7a103dac191b7047268baa95d20f Catalin(ux) M. BOIE 2017-03-02 17:40:46
Do not show big files. 2911893ff2790dabd0276a0fe83bfddcb0dd91c3 Catalin(ux) M. BOIE 2017-02-26 09:44:01
Disable fetch by git protocol of private repos! 34542abdf3711dad4fef26b36e2c9f057aac4fff Catalin(ux) M. BOIE 2017-02-24 22:04:59
Commit 03407e5f7562ac997612c56fd20fe067162ea8de - Small changes regarding more debugging in several places
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-03-19 19:42
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-03-19 19:42
Parent(s): e3a06443fba2c22009f0bde4ea9c3f201a9803cb
Signing key:
Tree: c09fac168d8e789552ef89a1e78e296776846aaa
File Lines added Lines deleted
inc/git.inc.php 6 3
inc/repo.inc.php 4 1
inc/token.inc.php 1 0
inc/user/repo-page.php 1 1
File inc/git.inc.php changed (mode: 100644) (index c4a9bb0..0adca5e)
... ... function rg_git_update_branch($db, $a)
1390 1390
1391 1391 if (strcmp($merge_base, $a['old_rev']) != 0) if (strcmp($merge_base, $a['old_rev']) != 0)
1392 1392 rg_git_fatal($a['refname'] rg_git_fatal($a['refname']
1393 . "\nYou have no rights to do a non fast-forward push");
1393 . "\nYou have no rights to do a non fast-forward push;"
1394 . " Do a fetch and re-base before pushing.");
1394 1395 } }
1395 1396
1396 1397 // Check if user pushes a merge commit // Check if user pushes a merge commit
 
... ... function rg_git_ref_valid($refs, $type, $ref)
1562 1563 */ */
1563 1564 function rg_git_branches_and_tags($refs, $base_url, $current_ref) function rg_git_branches_and_tags($refs, $base_url, $current_ref)
1564 1565 { {
1565 rg_log_enter("git_branches_and_tags: base_url=$base_url"
1566 . " current_ref=$current_ref");
1566 rg_log_enter('git_branches_and_tags:'
1567 . ' refs: ' . rg_array2string($refs)
1568 . ' base_url=' . $base_url
1569 . ' current_ref=' . $current_ref);
1567 1570
1568 1571 $ret = array(); $ret = array();
1569 1572 $ret['HTML:branches_and_tags'] = ''; $ret['HTML:branches_and_tags'] = '';
File inc/repo.inc.php changed (mode: 100644) (index d464841..9871f9e)
... ... function rg_repo_event_push($db, $event)
736 736 { {
737 737 $ret = array(); $ret = array();
738 738
739 // TODO: we must be sure here that the update-ref finished with success
740 // TODO: load references and check them?
741
739 742 // notify user // notify user
740 743 if (0) { // TODO if (0) { // TODO
741 744 $x = $event; $x = $event;
 
... ... function rg_repo_fetch_push_helper($db, $host, $ip, $login_ui, $prefix, $user,
2505 2508 $x['ip'] = $ip; $x['ip'] = $ip;
2506 2509 $x['misc'] = ''; $x['misc'] = '';
2507 2510 $r = rg_rights_allow($db, $x); $r = rg_rights_allow($db, $x);
2508 // TODO: what if an error occured? How we signal this?!
2511 // TODO: what if an error occured? How do we signal this?! $r must have ok key
2509 2512 if ($r !== TRUE) { if ($r !== TRUE) {
2510 2513 $ret['error'] = 'non existing repo or you are not allowed to push'; $ret['error'] = 'non existing repo or you are not allowed to push';
2511 2514 break; break;
File inc/token.inc.php changed (mode: 100644) (index 2d3b4db..8283ef5)
... ... function rg_token_get($db, $rg, $tag)
242 242 } }
243 243 $sign = substr($sign, 0, 16); $sign = substr($sign, 0, 16);
244 244 $ret = $rand . $sign; $ret = $rand . $sign;
245 rg_log('DEBUG: generated token ' . $ret);
245 246 $ret2 = $ret; $ret2 = $ret;
246 247
247 248 if ($rg['debug']) if ($rg['debug'])
File inc/user/repo-page.php changed (mode: 100644) (index d677f4e..201efb0)
... ... if (strcmp($_subop, "history") == 0) {
144 144 $rg['source_menu'][$_subsubop] = 1; $rg['source_menu'][$_subsubop] = 1;
145 145
146 146 $refs = rg_git_refs($rg['repo_path']); $refs = rg_git_refs($rg['repo_path']);
147 //rg_log_ml('DEBUG: refs: ' . print_r($refs, TRUE));
147 rg_log_ml('DEBUG: refs: ' . print_r($refs, TRUE));
148 148
149 149 $type_ref = rg_git_parse_ref($paras); $type_ref = rg_git_parse_ref($paras);
150 150 $ref = $type_ref['ref_path']; $ref = $type_ref['ref_path'];
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