Skip to content

Commit 9ebd817

Browse files
authored
Merge pull request #427 from Kobzol/remove-master-hardcoded
Remove hardcoded master branch reference
2 parents 11d57eb + 8eed6ed commit 9ebd817

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/bors/comment.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ pub fn merge_conflict_comment(branch: &str) -> Comment {
202202
let message = format!(
203203
r#":lock: Merge conflict
204204
205-
This pull request and the master branch diverged in a way that cannot
206-
be automatically merged. Please rebase on top of the latest master
205+
This pull request and the base branch diverged in a way that cannot
206+
be automatically merged. Please rebase on top of the latest base
207207
branch, and let the reviewer approve again.
208208
209209
<details><summary>How do I rebase?</summary>
@@ -212,8 +212,8 @@ Assuming `self` is your fork and `upstream` is this repository,
212212
you can resolve the conflict following these steps:
213213
214214
1. `git checkout {branch}` *(switch to your branch)*
215-
2. `git fetch upstream master` *(retrieve the latest master)*
216-
3. `git rebase upstream/master -p` *(rebase on top of it)*
215+
2. `git fetch upstream HEAD` *(retrieve the latest base branch)*
216+
3. `git rebase upstream/HEAD -p` *(rebase on top of it)*
217217
4. Follow the on-screen instruction to resolve conflicts (check `git status` if you got lost).
218218
5. `git push self {branch} --force-with-lease` *(update this PR)*
219219

src/bors/handlers/trybuild.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ try-job: Bar
591591
insta::assert_snapshot!(tester.get_comment_text(()).await?, @r###"
592592
:lock: Merge conflict
593593
594-
This pull request and the master branch diverged in a way that cannot
595-
be automatically merged. Please rebase on top of the latest master
594+
This pull request and the base branch diverged in a way that cannot
595+
be automatically merged. Please rebase on top of the latest base
596596
branch, and let the reviewer approve again.
597597
598598
<details><summary>How do I rebase?</summary>
@@ -601,8 +601,8 @@ try-job: Bar
601601
you can resolve the conflict following these steps:
602602
603603
1. `git checkout pr-1` *(switch to your branch)*
604-
2. `git fetch upstream master` *(retrieve the latest master)*
605-
3. `git rebase upstream/master -p` *(rebase on top of it)*
604+
2. `git fetch upstream HEAD` *(retrieve the latest base branch)*
605+
3. `git rebase upstream/HEAD -p` *(rebase on top of it)*
606606
4. Follow the on-screen instruction to resolve conflicts (check `git status` if you got lost).
607607
5. `git push self pr-1 --force-with-lease` *(update this PR)*
608608

src/bors/merge_queue.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,8 +820,8 @@ merge_queue_enabled = false
820820
@r#"
821821
:lock: Merge conflict
822822
823-
This pull request and the master branch diverged in a way that cannot
824-
be automatically merged. Please rebase on top of the latest master
823+
This pull request and the base branch diverged in a way that cannot
824+
be automatically merged. Please rebase on top of the latest base
825825
branch, and let the reviewer approve again.
826826
827827
<details><summary>How do I rebase?</summary>
@@ -830,8 +830,8 @@ merge_queue_enabled = false
830830
you can resolve the conflict following these steps:
831831
832832
1. `git checkout pr-1` *(switch to your branch)*
833-
2. `git fetch upstream master` *(retrieve the latest master)*
834-
3. `git rebase upstream/master -p` *(rebase on top of it)*
833+
2. `git fetch upstream HEAD` *(retrieve the latest base branch)*
834+
3. `git rebase upstream/HEAD -p` *(rebase on top of it)*
835835
4. Follow the on-screen instruction to resolve conflicts (check `git status` if you got lost).
836836
5. `git push self pr-1 --force-with-lease` *(update this PR)*
837837

0 commit comments

Comments
 (0)