[All OS] Output full version of git to software report (#5097)

This commit is contained in:
Maksim Shilov
2022-02-18 10:23:34 +03:00
committed by GitHub
parent 2269ded856
commit 4d4f454424
4 changed files with 16 additions and 6 deletions

View File

@@ -89,8 +89,7 @@ function Get-DockerBuildxVersion {
}
function Get-GitVersion {
$result = Get-CommandResult "git --version"
$gitVersion = $result.Output | Take-OutputPart -Part 2
$gitVersion = git --version | Take-OutputPart -Part -1
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-core"
return "Git $gitVersion (apt source repository: $aptSourceRepo)"
}