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 a6fa7c067b29f2d3ae400e6cb9117d17225ce047

We need to copy also the tags in the namespace to not get errors when pushing tags
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-03-06 21:21
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-03-06 21:21
Parent(s): 2383950909474e510897f37e46c2cf7cc762ec89
Signing key:
Tree: 5468aea6506fe101a679030178bca72972f4e9e7
File Lines added Lines deleted
scripts/remote.php 6 3
File scripts/remote.php changed (mode: 100644) (index 48dd957..7b25512)
... ... if ($push == 1) {
287 287 // Prepare refs to avoid the following message: // Prepare refs to avoid the following message:
288 288 // "No refs in common and none specified; doing nothing. // "No refs in common and none specified; doing nothing.
289 289 // Perhaps you should specify a branch such as 'master'." // Perhaps you should specify a branch such as 'master'."
290 $dst = $repo_path . "/refs/namespaces/" . $namespace . "/refs/heads";
291 $r = rg_copy_tree($repo_path . "/refs/heads", $dst . "/", 0755);
290 $dst = $repo_path . '/refs/namespaces/' . $namespace . '/refs';
291 $r = rg_copy_tree($repo_path . '/refs/heads', $dst . '/heads/', 0755);
292 292 if ($r !== TRUE) if ($r !== TRUE)
293 fatal("Internal error (cannot copy refs)");
293 fatal("Internal error (cannot copy heads)");
294 $r = rg_copy_tree($repo_path . '/refs/tags', $dst . '/tags/', 0755);
295 if ($r !== TRUE)
296 fatal("Internal error (cannot copy tags)");
294 297 } }
295 298
296 299 $run = "git-shell -c \"" . $cmd . " " . escapeshellarg($repo_path) . "\""; $run = "git-shell -c \"" . $cmd . " " . escapeshellarg($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