Skip to content

Commit

Permalink
Revert "Check that master has an initial commit"
Browse files Browse the repository at this point in the history
This reverts commit 1d01164.
  • Loading branch information
leojonathanoh committed Nov 27, 2023
1 parent 98d4ac7 commit 3f19361
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Generate-GitBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'] )"

Expand Down

0 comments on commit 3f19361

Please sign in to comment.