Skip to content

Commit

Permalink
Checkout files from source ref
Browse files Browse the repository at this point in the history
  • Loading branch information
leojonathanoh committed Dec 9, 2023
1 parent f6de128 commit 89f1321
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Generate-GitBranches.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ try {

"Checking out files" | Write-Host -ForegroundColor Green
if ($isSameRepo) {
{ git checkout master -- build } | Execute-Command
{ git checkout master -- update } | Execute-Command
{ git checkout master -- build.sh } | Execute-Command
{ git checkout master -- notify.sh } | Execute-Command
{ git checkout master -- .gitlab-ci.yml } | Execute-Command
{ git checkout $sourceRef -- build } | Execute-Command
{ git checkout $sourceRef -- update } | Execute-Command
{ git checkout $sourceRef -- build.sh } | Execute-Command
{ git checkout $sourceRef -- notify.sh } | Execute-Command
{ git checkout $sourceRef -- .gitlab-ci.yml } | Execute-Command
}else {
Copy-Item $sourceRepo/build . -Recurse -Force
Copy-Item $sourceRepo/update . -Recurse -Force
Expand Down

0 comments on commit 89f1321

Please sign in to comment.