Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Nov 22, 2023
1 parent 5889da4 commit e184113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Generate-GitBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ try {
$isSameRepo = if ($TargetRepo -eq $sourceRepo) { $true } else { $false }

Push-Location $TargetRepo
$log = { git log master -1 } | Execute-Command -ErrorAction SilentlyContinue
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"
}
Expand Down

0 comments on commit e184113

Please sign in to comment.