Should fix patch_commit_number.ps1 call (shallow clone cannot find a proper commit number for the nightly release).

This commit is contained in:
Martín Lucas Golini
2025-12-14 12:22:22 -03:00
parent 6ea10b5342
commit 7632e63f46
2 changed files with 10 additions and 19 deletions

View File

@@ -2,7 +2,10 @@ Set-Location (Resolve-Path "$PSScriptRoot\..\..")
$COMMIT_NUMBER = git rev-list "$((git tag --sort=-creatordate | Select-String ecode | Select-Object -First 1).Line)..HEAD" --count
if ($LASTEXITCODE) { exit $LASTEXITCODE }
if ($LASTEXITCODE) {
Write-Error "Error: git binary not found"
exit $LASTEXITCODE
}
$FILE_PATH = ".\src\tools\ecode\version.hpp"