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 0e3d2207e951db3c42d65784a2fe1b79e335cd71

We cannot store directly in /var/lib/rocketgit because is owned by root
Author: Catalin(ux) M. BOIE
Author date (UTC): 2016-09-27 03:04
Committer name: Catalin(ux) M. BOIE
Committer date (UTC): 2016-09-27 03:04
Parent(s): bbae4970f9972bdd37199dcf67beceef5f43aa36
Signing key:
Tree: e2e682dacae37a5176cb63cd5fcdce381dce8d7d
File Lines added Lines deleted
inc/log.inc.php 3 3
File inc/log.inc.php changed (mode: 100644) (index 7a79135..cbaa979)
... ... function rg_log_cron()
175 175
176 176 // Do not send less than 1 per 4 hours // Do not send less than 1 per 4 hours
177 177 $last_ts = 0; $last_ts = 0;
178 if (file_exists($rg_state_dir . "/log_cron_last"))
179 $last_ts = @filemtime($rg_state_dir . "/log_cron_last");
178 if (file_exists($rg_state_dir . '/tmp/log_cron_last'))
179 $last_ts = @filemtime($rg_state_dir . '/tmp/log_cron_last');
180 180
181 181 if ($last_ts + 4 * 3600 > time()) if ($last_ts + 4 * 3600 > time())
182 182 return 0; return 0;
 
... ... function rg_log_cron()
189 189 'Content-Type: text/plain;charset=UTF-8', 'Content-Type: text/plain;charset=UTF-8',
190 190 "-f $rg_admin_email"); "-f $rg_admin_email");
191 191
192 file_put_contents($rg_state_dir . "/log_cron_last", time());
192 file_put_contents($rg_state_dir . '/tmp/log_cron_last', time());
193 193 } }
194 194
195 195 function rg_fatal($msg) function rg_fatal($msg)
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