Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Use -B to reset branch repro_ci_failures in one command

Christophe Bliardc57544e321f1
diff --git a/script/github_pr_errors b/script/github_pr_errors
index d1a3058766d..77c4343f447 100755
--- a/script/github_pr_errors
+++ b/script/github_pr_errors
@@ -566,7 +566,7 @@ class Formatter
warn <<~INSTRUCTIONS.white.dark
GitHub Action run merged #{report.merge_branch_sha} into #{report.head_sha} before running.
To be with the exact same source files as CI, use these commands (warning: stash your modifications first):
- git checkout --force -b repro_ci_failures #{report.head_sha}
+ git checkout -B repro_ci_failures #{report.head_sha}
git merge --no-edit --no-verify #{report.merge_branch_sha}
INSTRUCTIONS
else