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 43e213676ffb27fabc4d0137337ac6e332185a33

Fixed submodule link (reported by Gabi B)
Author: Catalin(ux) M. BOIE
Author date (UTC): 2015-12-20 08:07
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2015-12-20 08:07
Parent(s): f2626cb2fcfedd9c567b1fa50ce9521981241693
Signing key:
Tree: b962423f23a5483ef2e5aa69fa4e1e28be737006
File Lines added Lines deleted
inc/git.inc.php 6 0
root/themes/default/repo/tree/line.html 8 1
File inc/git.inc.php changed (mode: 100644) (index 64c2717..015e059)
... ... require_once($INC . "/events.inc.php");
6 6
7 7 $rg_git_zero = "0000000000000000000000000000000000000000"; $rg_git_zero = "0000000000000000000000000000000000000000";
8 8 $rg_git_empty = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"; $rg_git_empty = "4b825dc642cb6eb9a060e54bf8d69288fbee4904";
9 define('GIT_LINK_MASK', intval(base_convert('160000', 8, 10)));
9 10
10 11 $rg_git_error = ""; $rg_git_error = "";
11 12
 
... ... function rg_git_ls_tree($repo_path, $tree, $path)
469 470 '${1} ${2} ${3} ${5}', $_t[0]); '${1} ${2} ${3} ${5}', $_t[0]);
470 471 $_t = explode(" ", $_i); $_t = explode(" ", $_i);
471 472 $_y['mode'] = $_t[0]; $_y['mode'] = $_t[0];
473 $_y['mode_int'] = intval(base_convert($_t[0], 8, 10));
474 if (($_y['mode_int'] & GIT_LINK_MASK) == GIT_LINK_MASK)
475 $_y['is_link'] = 1;
476 else
477 $_y['is_link'] = 0;
472 478 $_y['type'] = $_t[1]; $_y['type'] = $_t[1];
473 479 $_y['ref'] = $_t[2]; $_y['ref'] = $_t[2];
474 480 $_y['size'] = $_t[3]; $_y['size'] = $_t[3];
File root/themes/default/repo/tree/line.html changed (mode: 100644) (index 06063f1..2c9412d)
3 3 <td>@@type@@</td> <td>@@type@@</td>
4 4 <td>@@size@@</td> <td>@@size@@</td>
5 5 <td>@@ref@@</td> <td>@@ref@@</td>
6 <td><a href="@@url_repo@@/source/tree@@ref_url@@/@@type@@@@path@@/@@file@@">@@file@@</a></td>
6 <td>
7 @@if(@@is_link@@ == 0){{
8 <a href="@@url_repo@@/source/tree@@ref_url@@/@@type@@@@path@@/@@file@@">@@file@@</a>
9 }}
10 {{
11 @@file@@ (link to other git tree)
12 }}
13 </td>
7 14 </tr> </tr>
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