From 690b83cead7ade13822521df662af2ab1bac42d1 Mon Sep 17 00:00:00 2001 From: Bjarke Sporring Date: Wed, 21 Jan 2026 11:40:00 +0100 Subject: [PATCH] fix: remove fallbacks for the Get-MainBranch check --- util.ps1 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/util.ps1 b/util.ps1 index 6eadaf8..aee2067 100644 --- a/util.ps1 +++ b/util.ps1 @@ -37,13 +37,7 @@ function Get-MainBranch { } elseif ($allBranches -contains "master") { $mainBranch = "master" } else { - # Get the default branch from git config $mainBranch = git config --get init.defaultBranch - if (-not $mainBranch) { - # Ultimate fallback: use the first branch - $mainBranch = $allBranches | Select-Object -First 1 - if (-not $mainBranch) { $mainBranch = "main" } - } } return $mainBranch