Skip to content

Commit

Permalink
Remove the origin prefix from the fallback branch name in BuildWorker
Browse files Browse the repository at this point in the history
The `origin/` prefix will be added by the actual git cloner later on
when `co.checkout_origin_ref` is called further down the function.
  • Loading branch information
andir committed May 16, 2021
1 parent d934ebe commit d60b15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ofborg/src/tasks/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ impl notifyworker::SimpleNotifyWorker for BuildWorker {

let target_branch = match job.pr.target_branch.clone() {
Some(x) => x,
None => String::from("origin/master"),
None => String::from("master"),
};

let buildfile = match job.subset {
Expand Down

0 comments on commit d60b15a

Please sign in to comment.