Skip to content

Build issue with specific commit hash #710

@ami-GS

Description

@ami-GS
git checkout <specific hash>
.\tools\build.ps1

image

function Get-CurrentBranch {
$env:GIT_REDIRECT_STDERR = '2>&1'
$CurrentBranch = $null
try {
$CurrentBranch = git branch --show-current
if ([string]::IsNullOrWhiteSpace($CurrentBranch)) {
throw
}
} catch {
Write-Error "Failed to get branch from git"
}
return $CurrentBranch
}

git branch --show-current get error when currently point to specific commit hash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildRelated to building/compiling the code

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions