Skip to content

Commit

Permalink
Preserve .trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Sep 16, 2023
1 parent 2293a4c commit 92eabfd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Generate-GitBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,11 @@ try {
if ($LASTEXITCODE) { throw }
}

"Removing files" | Write-Host -ForegroundColor Green
$repoDir = git rev-parse --show-toplevel
if ($LASTEXITCODE) { throw }
Get-ChildItem . -Exclude '.git', '.env', '.state', '.trigger' -Force | Remove-Item -Recurse -Force
"Checking out files" | Write-Host -ForegroundColor Green
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 92eabfd

Please sign in to comment.