Skip to content

Commit e149a15

Browse files
bors[bot]Jonas Schievink
and
Jonas Schievink
authored
Merge #11348
11348: fix: Fix merge commit check for git 2.35 r=jonas-schievink a=jonas-schievink git 2.35 introduces a [change in behavior](https://github.com/git/git/blob/89bece5c8c96f0b962cfc89e63f82d603fd60bed/Documentation/RelNotes/2.35.0.txt#L330-L333) that breaks this check. bors r+ Co-authored-by: Jonas Schievink <[email protected]>
2 parents 28b65d3 + 3c51aaf commit e149a15

File tree

1 file changed

+3
-4
lines changed
  • crates/rust-analyzer/tests/slow-tests

1 file changed

+3
-4
lines changed

crates/rust-analyzer/tests/slow-tests/tidy.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,9 @@ fn check_cargo_toml(path: &Path, text: String) {
139139

140140
#[test]
141141
fn check_merge_commits() {
142-
let stdout = cmd!("git rev-list --merges --invert-grep --author 'bors\\[bot\\]' HEAD~19..")
143-
.read()
144-
.unwrap();
145-
if !stdout.is_empty() {
142+
let bors = cmd!("git rev-list --merges --author 'bors\\[bot\\]' HEAD~19..").read().unwrap();
143+
let all = cmd!("git rev-list --merges HEAD~19..").read().unwrap();
144+
if bors != all {
146145
panic!(
147146
"
148147
Merge commits are not allowed in the history.

0 commit comments

Comments
 (0)