mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-13 03:58:13 -05:00
fix(update): fix version fetch logic
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
This commit is contained in:
parent
7ac2e2e2ed
commit
0f80ab8d5f
@ -254,6 +254,8 @@ class UpdateService
|
||||
protected function getCurrentCommit(): string
|
||||
{
|
||||
try {
|
||||
// Ensure git configuration is correct
|
||||
Process::run(sprintf('git config --global --add safe.directory %s', base_path()));
|
||||
$result = Process::run('git rev-parse HEAD');
|
||||
$fullHash = trim($result->output());
|
||||
return $fullHash ? $this->formatCommitHash($fullHash) : 'unknown';
|
||||
|
Loading…
Reference in New Issue
Block a user