-
Notifications
You must be signed in to change notification settings - Fork 52
Labels
buildRelated to building/compiling the codeRelated to building/compiling the code
Description
git checkout <specific hash>
.\tools\build.ps1
xdp-for-windows/tools/common.ps1
Lines 36 to 48 in 52c8ed2
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
Labels
buildRelated to building/compiling the codeRelated to building/compiling the code