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 45749c46f79f75b29d83ee2d115f987c7765e8c4

Another round of fixes.
Author: Catalin(ux) M. BOIE
Author date (UTC): 2011-07-05 20:01
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2011-07-05 20:01
Parent(s): 6077961d5c443b8a830dc08b3b0ebf37eaf594b3
Signing key:
Tree: 159735beca27c98fb1d7bf3f19d39e4fbec630d4
File Lines added Lines deleted
TODO 1 0
admin/init.php 1 1
duilder.conf 1 1
inc/log.inc.php 1 2
inc/user.inc.php 1 1
rocketgit.spec.in 3 1
File TODO changed (mode: 100644) (index 56ab1fb..da9ec60)
57 57 [ ] Smart HTTP transport [ ] Smart HTTP transport
58 58 [ ] Move forget pass token into users table. [ ] Move forget pass token into users table.
59 59 [ ] Audit all error messages to not propage usefull info to an attacker. [ ] Audit all error messages to not propage usefull info to an attacker.
60 [ ] git-daemon connection - cannot get IP info? setenv?
60 61 [ ] [ ]
61 62
62 63 == Versus == == Versus ==
File admin/init.php changed (mode: 100644) (index 615101d..03fc8c0)
... ... $is_admin = 1;
31 31 $disk_quota_mb = 0; $disk_quota_mb = 0;
32 32 $rights = rg_rights_all("user"); $rights = rg_rights_all("user");
33 33 $user = "admin"; $user = "admin";
34 $email = "";
34 $email = $rg_admin_email;
35 35 $session_time = 3600; $session_time = 3600;
36 36 $confirm_token = ""; $confirm_token = "";
37 37 while (1) { while (1) {
File duilder.conf changed (mode: 100644) (index 36bc1ff..f3ac577)
1 1 PRJ="rocketgit" PRJ="rocketgit"
2 VER="0.8"
2 VER="0.9"
3 3 REV="1" REV="1"
4 4 EXCLUDE=".exclude" EXCLUDE=".exclude"
5 5 EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit" EXPORT_PATH="/data/www/umbrella/kernel/us/rocketgit"
File inc/log.inc.php changed (mode: 100644) (index b8bdd47..6acb1f6)
... ... function rg_log($str)
19 19 global $rg_log_sid; global $rg_log_sid;
20 20
21 21 if ($rg_log_fd === FALSE) { if ($rg_log_fd === FALSE) {
22 $rg_log_fd = @fopen($rg_log_file, "a+");
22 $rg_log_fd = @fopen($rg_log_file, "a");
23 23 if ($rg_log_fd === FALSE) if ($rg_log_fd === FALSE)
24 24 return; return;
25 @chmod($rg_log_file, 0600);
26 25 // write an empty line // write an empty line
27 26 fwrite($rg_log_fd, "\n"); fwrite($rg_log_fd, "\n");
28 27 } }
File inc/user.inc.php changed (mode: 100644) (index 1697b42..b3e7bf7)
... ... function rg_user_login_by_user_pass($db, $user, $pass, &$rg_ui)
329 329 return FALSE; return FALSE;
330 330 } }
331 331
332 rg_user_sess($db, $rg_ui['uid'], $rg_ui['session_time']);
332 rg_user_auto_login($db, $rg_ui['uid'], $rg_ui);
333 333
334 334 rg_user_set_last_seen($db, $rg_ui['uid']); rg_user_set_last_seen($db, $rg_ui['uid']);
335 335
File rocketgit.spec.in changed (mode: 100644) (index b679ef4..df7e6d9)
... ... Source: http://kernel.embedromix.ro/us/rocketgit/%{name}-%{version}.tar.gz
8 8 URL: http://kernel.embedromix.ro/us/ URL: http://kernel.embedromix.ro/us/
9 9 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
10 10 BuildArch: noarch BuildArch: noarch
11 Requires: httpd, php, php-process, php-cli, php-pgsql, xinetd, shadow-utils, git, postgresql-server
11 Requires: httpd, php, php-process, php-cli, php-pgsql, xinetd
12 Requires: shadow-utils, git, postgresql-server, policycoreutils-python
12 13
13 14
14 15 %description %description
 
... ... Light and fast Git hosting solution, similar with Gitorious/GitHub/etc.
17 18 %pre %pre
18 19 getent group rocketgit || groupadd -r rocketgit getent group rocketgit || groupadd -r rocketgit
19 20 getent passwd rocketgit || useradd -r -g rocketgit -s /sbin/nologin -m -d /home/rocketgit -c "RocketGit user" rocketgit getent passwd rocketgit || useradd -r -g rocketgit -s /sbin/nologin -m -d /home/rocketgit -c "RocketGit user" rocketgit
21 semanage fcontext -a -t httpd_log_t "/var/log/rocketgit-web(/.*)?" || :
20 22
21 23 %post %post
22 24 if [ $1 -ne 0 ]; then if [ $1 -ne 0 ]; then
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