mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-25 07:21:30 +00:00
add placeholder update checker using git changesets
This commit is contained in:
@@ -8,6 +8,10 @@
|
||||
if (is_dir("$root_dir/.git") && file_exists("$root_dir/.git/refs/heads/master")) {
|
||||
|
||||
$suffix = substr(trim(file_get_contents("$root_dir/.git/refs/heads/master")), 0, 7);
|
||||
$timestamp = filemtime("$root_dir/.git/refs/heads/master");
|
||||
|
||||
define("GIT_VERSION_HEAD", $suffix);
|
||||
define("GIT_VERSION_TIMESTAMP", $timestamp);
|
||||
|
||||
return VERSION_STATIC . ".$suffix";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user