Skip to content

Commit 2cbf4a7

Browse files
[Mac OS] Remove hub utility (#8364)
1 parent 8cb738b commit 2cbf4a7

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

images/macos/provision/core/git.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ git lfs install
1414
# Update system git config
1515
sudo git lfs install --system
1616

17-
echo Installing Hub
18-
brew_smart_install "hub"
19-
2017
echo Disable all the Git help messages...
2118
git config --global advice.pushUpdateRejected false
2219
git config --global advice.pushNonFFCurrent false

images/macos/software-report/SoftwareReport.Common.psm1

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -302,11 +302,6 @@ function Get-GitHubCLIVersion {
302302
return $ghVersion
303303
}
304304

305-
function Get-HubVersion {
306-
$hubVersion = Run-Command "brew list --versions hub" | Take-Part -Part 1
307-
return $hubVersion
308-
}
309-
310305
function Get-WgetVersion {
311306
$wgetVersion = Run-Command "wget --version" | Select-String "GNU Wget" | Take-Part -Part 2
312307
return $wgetVersion
@@ -634,4 +629,4 @@ function Get-ColimaVersion {
634629
function Get-PKGConfigVersion {
635630
$pkgconfigVersion = Run-Command "pkg-config --version"
636631
return $pkgconfigVersion
637-
}
632+
}

images/macos/software-report/SoftwareReport.Generator.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ if ($os.IsBigSur) {
123123
$utilities.AddToolVersion("helm", $(Get-HelmVersion))
124124
}
125125
if ((-not $os.IsVentura) -and (-not $os.IsVenturaArm64)) {
126-
$utilities.AddToolVersion("Hub CLI", $(Get-HubVersion))
127126
$utilities.AddToolVersion("ImageMagick", $(Get-ImageMagickVersion))
128127
}
129128
$utilities.AddToolVersion("jq", $(Get-JqVersion))

images/macos/tests/Git.Tests.ps1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,3 @@ Describe "Git" {
88
"git lfs version" | Should -ReturnZeroExitCode
99
}
1010
}
11-
Describe "hub CLI" -Skip:($os.IsVentura -or $os.IsVenturaArm64) {
12-
It "hub CLI is installed" {
13-
"hub --version" | Should -ReturnZeroExitCode
14-
}
15-
}

0 commit comments

Comments
 (0)