mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Removed pre-release special version handling
This commit is contained in:
@@ -53,15 +53,6 @@ class ApplicationService extends BaseService
|
||||
if ($this->InstalledVersion == null)
|
||||
{
|
||||
$this->InstalledVersion = json_decode(file_get_contents(__DIR__ . '/../version.json'));
|
||||
|
||||
if (GROCY_MODE === 'prerelease')
|
||||
{
|
||||
$commitHash = trim(exec('git log --pretty="%h" -n1 HEAD'));
|
||||
$commitDate = trim(exec('git log --date=iso --pretty="%cd" -n1 HEAD'));
|
||||
|
||||
$this->InstalledVersion->Version = "pre-release-$commitHash";
|
||||
$this->InstalledVersion->ReleaseDate = substr($commitDate, 0, 19);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->InstalledVersion;
|
||||
|
Reference in New Issue
Block a user