From 3f193617bf2cdb6f3db3289f618830b9c60f993d Mon Sep 17 00:00:00 2001 From: Leonard Jonathan Oh Date: Wed, 22 Nov 2023 00:53:02 +0000 Subject: [PATCH] Revert "Check that `master` has an initial commit" This reverts commit 1d0116496a727db94013779dec0a7cde749e9881. --- Generate-GitBranches.ps1 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Generate-GitBranches.ps1 b/Generate-GitBranches.ps1 index 4b1f9087..d2b3523e 100644 --- a/Generate-GitBranches.ps1 +++ b/Generate-GitBranches.ps1 @@ -132,12 +132,6 @@ try { $isSameRepo = if ($TargetRepo -eq $sourceRepo) { $true } else { $false } Push-Location $TargetRepo - if ($PSCmdlet.ShouldProcess("Check that 'master' branch has commits")) { - $log = { git log master -1 } | Execute-Command -ErrorAction SilentlyContinue - if (!$log) { - throw "No commits on 'master'. Please create the master branch first: git commit -m 'Init' --allow-empty" - } - } foreach ($g in $games) { $branch = "$( $g['game_platform'] )-$( $g['game_engine'] )-$( $g['game'] )"