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 46d947874f12b7ac7f1ac3fa552f703c498082b2

Allow anonymous push when using git:// or ssh://
Author: Catalin(ux) M. BOIE
Author date (UTC): 2017-03-02 22:17
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2017-03-02 22:17
Parent(s): c75b10325c24e32b699f22a13c9374e80fe45a2b
Signing key:
Tree: 0dd792c235b20d390b2acfeb447263bb7aceff3b
File Lines added Lines deleted
scripts/remote.php 0 2
File scripts/remote.php changed (mode: 100644) (index 99c25e6..a9d778f)
... ... $r = rg_repo_fetch_push_helper($db, $host, $ip, $login_ui, $prefix, $user,
199 199 rg_log_ml('DEBUG: repo_fetch_push_helper: ' . print_r($r, TRUE)); rg_log_ml('DEBUG: repo_fetch_push_helper: ' . print_r($r, TRUE));
200 200 if (($r['ok'] !== 1) || ($r['allow'] !== 1)) if (($r['ok'] !== 1) || ($r['allow'] !== 1))
201 201 fatal($r['error']); fatal($r['error']);
202 if (($r['push'] === 1) && ($r['push_allowed'] !== 1))
203 fatal('Non existing repo or you are not allowed to push.');
204 202
205 203 $run = "git-shell -c \"" . $cmd . " " . escapeshellarg($r['repo_path']) . "\""; $run = "git-shell -c \"" . $cmd . " " . escapeshellarg($r['repo_path']) . "\"";
206 204 //$run = $cmd . ' ' . escapeshellarg($r['repo_path']); //$run = $cmd . ' ' . escapeshellarg($r['repo_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://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