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 eb947cfc564db2fe83ad8db9eb7843a030724901

Fix urlencoding of @@path@@ in trees
Author: xaizek
Author date (UTC): 2020-07-19 17:20
Committer name: xaizek
Committer date (UTC): 2020-07-30 21:15
Parent(s): c7f0afb7efe367c88e6b52bcfdbb3eefba9afb9c
Signing key: 99DC5E4DB05F6BE2
Tree: 949fe3e67660ed6148b6f4ab264fe6e606668092
File Lines added Lines deleted
inc/user/repo-page.php 1 1
File inc/user/repo-page.php changed (mode: 100644) (index 938436e..ea5ea36)
... ... if (strcmp($_subop, "history") == 0) {
441 441 } else if (strcmp($type, "tree") == 0) { } else if (strcmp($type, "tree") == 0) {
442 442 // find treeish of dir // find treeish of dir
443 443 $_path = implode("/", $paras); $_path = implode("/", $paras);
444 $rg['path'] = "/" . rawurlencode($_path);
444 $rg['path'] = "/" . implode("/", array_map('rawurlencode', $paras));
445 445 $_tree = rg_git_ls_tree($rg['repo_path'], $ref, $_path); $_tree = rg_git_ls_tree($rg['repo_path'], $ref, $_path);
446 446 if ($_tree === FALSE) { if ($_tree === FALSE) {
447 447 $_repo_body .= rg_warning('Error: ' . rg_git_error()); $_repo_body .= rg_warning('Error: ' . rg_git_error());
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