fix: handle clean git status in TOOL-003 freeze capture
This commit is contained in:
@@ -196,7 +196,7 @@ function Get-GitSha {
|
|||||||
function Get-GitPorcelain {
|
function Get-GitPorcelain {
|
||||||
$status = (& git -C $script:RepoRoot status --porcelain 2>$null)
|
$status = (& git -C $script:RepoRoot status --porcelain 2>$null)
|
||||||
if ($LASTEXITCODE -ne 0) { throw 'git status --porcelain failed' }
|
if ($LASTEXITCODE -ne 0) { throw 'git status --porcelain failed' }
|
||||||
return @($status)
|
return ,@($status)
|
||||||
}
|
}
|
||||||
|
|
||||||
function Write-DeployedSourceHashes {
|
function Write-DeployedSourceHashes {
|
||||||
|
|||||||
Reference in New Issue
Block a user