[Mac OS] Remove hub utility (#8364)

This commit is contained in:
Vasilii Polikarpov
2023-09-26 09:32:02 +02:00
committed by GitHub
parent 8cb738bb54
commit 2cbf4a7f93
4 changed files with 1 additions and 15 deletions

View File

@@ -14,9 +14,6 @@ git lfs install
# Update system git config
sudo git lfs install --system
echo Installing Hub
brew_smart_install "hub"
echo Disable all the Git help messages...
git config --global advice.pushUpdateRejected false
git config --global advice.pushNonFFCurrent false

View File

@@ -302,11 +302,6 @@ function Get-GitHubCLIVersion {
return $ghVersion
}
function Get-HubVersion {
$hubVersion = Run-Command "brew list --versions hub" | Take-Part -Part 1
return $hubVersion
}
function Get-WgetVersion {
$wgetVersion = Run-Command "wget --version" | Select-String "GNU Wget" | Take-Part -Part 2
return $wgetVersion
@@ -634,4 +629,4 @@ function Get-ColimaVersion {
function Get-PKGConfigVersion {
$pkgconfigVersion = Run-Command "pkg-config --version"
return $pkgconfigVersion
}
}

View File

@@ -123,7 +123,6 @@ if ($os.IsBigSur) {
$utilities.AddToolVersion("helm", $(Get-HelmVersion))
}
if ((-not $os.IsVentura) -and (-not $os.IsVenturaArm64)) {
$utilities.AddToolVersion("Hub CLI", $(Get-HubVersion))
$utilities.AddToolVersion("ImageMagick", $(Get-ImageMagickVersion))
}
$utilities.AddToolVersion("jq", $(Get-JqVersion))

View File

@@ -8,8 +8,3 @@ Describe "Git" {
"git lfs version" | Should -ReturnZeroExitCode
}
}
Describe "hub CLI" -Skip:($os.IsVentura -or $os.IsVenturaArm64) {
It "hub CLI is installed" {
"hub --version" | Should -ReturnZeroExitCode
}
}