Skip to content

Commit

Permalink
Allow skip fetch in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicusor Serban committed Oct 3, 2024
1 parent 77263b4 commit a38df2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/stan/Utils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def checkout_pr(String repo, String dir, String pr) {
git checkout refs/remotes/origin/pr/${prNumber}/merge
"""
} else {
sh "cd ${dir} && git remote update && git fetch origin ${pr}:${pr} && git pull origin ${pr} && git checkout ${pr}"
sh "cd ${dir} && git remote update && git fetch origin ${pr}:${pr} || true && git pull origin ${pr} && git checkout ${pr}"

}
sh "cd ${dir} && git clean -xffd"
Expand Down

0 comments on commit a38df2e

Please sign in to comment.