Skip to content

Commit

Permalink
Fix removing of files before checking out
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Sep 16, 2023
1 parent 908d605 commit 14b451b
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 @@ -64,7 +64,7 @@ try {
}

"Checking out files" | Write-Host -ForegroundColor Green
$masterTrackedFiles | Get-Item -Force | Remove-Item -Recurse -Force
Get-ChildItem . -Exclude '.git', 'build/Dockerfile', 'update/Dockerfile', 'build.sh', 'notify.sh', '.gitlab-ci.yml', '.env', '.state' -Force | Remove-Item -Recurse -Force
git checkout master -- build
if ($LASTEXITCODE) { throw }
git checkout master -- update
Expand Down

0 comments on commit 14b451b

Please sign in to comment.