List of commits:
Subject Hash Author Date (UTC)
If user has no repos, go directly to 'create' page. d22f90ace3af3241e5554c82bbf633d68a549be4 Catalin(ux) M. BOIE 2015-07-09 03:28:47
On account creation, we did not set the 'confirmed' field. 7e83a1661aa078ae9a3160aa43586c76307e56d0 Catalin(ux) M. BOIE 2015-07-09 03:27:41
Do not add a border for submenus. b51bce132dceef556d32f7e7caa788ec9b3cd519 Catalin(ux) M. BOIE 2015-07-06 04:31:14
Small changes to the rights pages. a1fea38da6d0ca29126d9f030addc426cb2b0ab2 Catalin(ux) M. BOIE 2015-07-06 04:30:46
Improved a little but the report1. f4196351fc9cda4e9c213d30077859e7be7ead65 Catalin(ux) M. BOIE 2015-07-06 04:01:03
Add a history entry when a repo is created. 884f64b72469b10a14b086e6572b6e464ce23378 Catalin(ux) M. BOIE 2015-07-06 03:49:37
Cache improvements (no wait when no needed) and layout changes. e51ecf91f18a7533a009530075bb0710e4caae63 Catalin(ux) M. BOIE 2015-07-02 19:39:46
Seems empty additional_headers will trigger a nasty error in php. 3aaa0b5b7cc18277a8ca4b404c40b0eb15383681 Catalin(ux) M. BOIE 2015-07-02 04:53:58
Improved ls-tree operation a little bit. bb450d8c2e47b30b98f6571ef80ae310387b4823 Catalin(ux) M. BOIE 2015-06-26 04:07:16
Lots of fixes, mostly cache performance ones. c42469d7e9ea84b23776c945cb0dd46ea82a589f Catalin(ux) M. BOIE 2015-06-24 04:22:07
Use HTTP/1.1 caching only with HTTP/1.1 protocol. 7998f5b0ba9cbd06deb5a5e5270629f9213cf2b7 Catalin(ux) M. BOIE 2015-06-18 21:46:13
Bumpped version to 0.34 65d54e7a4a50527a22a4a325a2fb423b60acc77d Catalin(ux) M. BOIE 2015-06-09 16:06:42
More stuff in TODO. 16bce74aefff9696959c7b186031a4b4e36a1d79 Catalin(ux) M. BOIE 2015-06-09 16:05:05
More design stuff. a87db7c7448cd59cd2f56fb108c5ed12f01d4e06 Catalin(ux) M. BOIE 2015-06-09 16:04:49
Fixed UTF-8 chars whn connecting by ssh and issueing command repos c363832f1e7c6bc3672f823ac5c0c2f3244b4615 Catalin(ux) M. BOIE 2015-06-09 16:04:04
Add caching by using ETag / If-None-Match 132cd07d19e33b382ab4e7a0a0b0e057fe316652 Catalin(ux) M. BOIE 2015-06-09 16:03:27
Add debug support for rpm instalation. c091b24f82c135b5606181f417d2f18151d951ae Catalin(ux) M. BOIE 2015-06-06 11:00:44
SSH key fingerprint: add SHA256 support f774edcd0c17f66dd4de54aa35a543bbafaff609 Catalin(ux) M. BOIE 2015-06-04 20:31:35
Put features first in menu 33a9cef11227407d2cdf63056e71b66dd6106f62 Catalin(ux) M. BOIE 2015-06-02 19:44:51
Switch to v2 images e0d94a44d7093be83b82ea5227c0afcba22a5d27 Catalin(ux) M. BOIE 2015-05-27 03:36:13
Commit d22f90ace3af3241e5554c82bbf633d68a549be4 - If user has no repos, go directly to 'create' page.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-07-09 03:28
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-07-09 03:28
Parent(s): 7e83a1661aa078ae9a3160aa43586c76307e56d0
Signer:
Signing key:
Signing status: N
Tree: f1c3fa9e8409647852325df17f750aa651ad0689
File Lines added Lines deleted
inc/repo.inc.php 37 0
inc/repo/repo.php 8 1
File inc/repo.inc.php changed (mode: 100644) (index 7747d9a..5b5d62d)
... ... function rg_repo_delete($db, $repo_id, $ui)
778 778 rg_cache_unset('repo_by_id::' . $repo_id, RG_SOCKET_NO_WAIT); rg_cache_unset('repo_by_id::' . $repo_id, RG_SOCKET_NO_WAIT);
779 779 rg_cache_unset('repo_by_name::' . $ui['uid'] rg_cache_unset('repo_by_name::' . $ui['uid']
780 780 . '::' . $ri['name'], RG_SOCKET_NO_WAIT); . '::' . $ri['name'], RG_SOCKET_NO_WAIT);
781 rg_cache_unset('user' . '::' . $ui['uid'] . '::' . 'has_repos',
782 RG_SOCKET_NO_WAIT);
781 783
782 784 $ret = TRUE; $ret = TRUE;
783 785 break; break;
 
... ... function rg_repo_edit($db, $login_ui, &$new)
1031 1033 return $ret; return $ret;
1032 1034 } }
1033 1035
1036 /*
1037 * Returns 1 if user has at least one repo
1038 * Used to go directly to 'create' page instead to 'list'
1039 */
1040 function rg_repo_have($db, $uid)
1041 {
1042 rg_prof_start('repo_have');
1043
1044 $ret = 1;
1045 while (1) {
1046 $key = 'user' . '::' . $uid . '::' . 'has_repos';
1047 $c = rg_cache_get($key);
1048 if ($c !== FALSE) {
1049 $ret = $c;
1050 break;
1051 }
1052
1053 $params = array('uid' => $uid);
1054 $sql = 'SELECT 1 FROM repos WHERE uid = @@uid@@ LIMIT 1';
1055 $res = rg_sql_query_params($db, $sql, $params);
1056 if ($res === FALSE)
1057 break;
1058
1059 $rows = rg_sql_num_rows($res);
1060 rg_sql_free_result($res);
1061
1062 $ret = $rows;
1063 rg_cache_set($key, $ret, RG_SOCKET_NO_WAIT);
1064 break;
1065 }
1066
1067 rg_prof_end('repo_have');
1068 return $ret;
1069 }
1070
1034 1071 /* /*
1035 1072 * List repositories * List repositories
1036 1073 */ */
File inc/repo/repo.php changed (mode: 100644) (index 3158ce0..140840f)
... ... rg_log("FILE: /inc/repo/repo");
5 5
6 6 $_repo = ""; $_repo = "";
7 7
8 $_subop = empty($paras) ? "list" : array_shift($paras);
8 if (empty($paras)) {
9 if (rg_repo_have($db, $rg['login_ui']['uid']) == 0)
10 $_subop = 'create';
11 else
12 $_subop = 'list';
13 } else {
14 $_subop = array_shift($paras);
15 }
9 16 switch ($_subop) { switch ($_subop) {
10 17 case 'create': case 'create':
11 18 $rg['form_url'] = "/op/repo/create"; $rg['form_url'] = "/op/repo/create";
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