mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Rework Git installation to avoid using apt repo (#3095)
* rework git installation * simplify git installation * minor fix * document source repo's * small fix * debug
This commit is contained in:
committed by
GitHub
parent
fbcc41275b
commit
d1de678b65
@@ -78,13 +78,15 @@ function Get-DockerBuildxVersion {
|
||||
function Get-GitVersion {
|
||||
$result = Get-CommandResult "git --version"
|
||||
$gitVersion = $result.Output | Take-OutputPart -Part 2
|
||||
return "Git $gitVersion"
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-core"
|
||||
return "Git $gitVersion (apt source repository: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-GitLFSVersion {
|
||||
$result = Get-CommandResult "git-lfs --version"
|
||||
$gitlfsversion = $result.Output | Take-OutputPart -Part 0 | Take-OutputPart -Part 1 -Delimiter "/"
|
||||
return "Git LFS $gitlfsversion"
|
||||
$aptSourceRepo = Get-AptSourceRepository -PackageName "git-lfs"
|
||||
return "Git LFS $gitlfsversion (apt source repository: $aptSourceRepo)"
|
||||
}
|
||||
|
||||
function Get-GitFTPVersion {
|
||||
|
||||
Reference in New Issue
Block a user