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 e761b36efaa37fc3c453e8382127e340bc736bc7

Store the timestamp of the deletion for a repo, not 1
Author: Catalin(ux) M. BOIE
Author date (UTC): 2018-06-04 18:00
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2018-06-04 18:00
Parent(s): f85ea05bf4b456cc0430e78f2705347dc79343ae
Signing key:
Tree: e9fa927f9458d3940242d4a6fd039647cdc41a10
File Lines added Lines deleted
inc/repo.inc.php 3 3
File inc/repo.inc.php changed (mode: 100644) (index e6c8656..9d8052a)
... ... function rg_repo_delete($db, $repo_id, $ui)
911 911 } }
912 912
913 913 // Only mark it as such, deletion will happen in background // Only mark it as such, deletion will happen in background
914 $params = array("repo_id" => $repo_id);
915 $sql = "UPDATE repos SET deleted = 1"
914 $params = array('repo_id' => $repo_id, 'now' => time());
915 $sql = "UPDATE repos SET deleted = @@now@@"
916 916 . " WHERE repo_id = @@repo_id@@"; . " WHERE repo_id = @@repo_id@@";
917 917 $res = rg_sql_query_params($db, $sql, $params); $res = rg_sql_query_params($db, $sql, $params);
918 918 if ($res === FALSE) { if ($res === FALSE) {
 
... ... function rg_repo_fetch_push_helper($db, $host, $ip, $login_ui, $prefix, $user,
2471 2471 $ret['errmsg'] = 'repository does not exists'; $ret['errmsg'] = 'repository does not exists';
2472 2472 break; break;
2473 2473 } }
2474 if ($ret['ri']['deleted'] == 1) {
2474 if ($ret['ri']['deleted'] > 0) {
2475 2475 $ret['errmsg'] = 'repository has been deleted'; $ret['errmsg'] = 'repository has been deleted';
2476 2476 break; break;
2477 2477 } }
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