Skip to content

Commit 3c51aaf

Browse files
author
Jonas Schievink
committed
Fix merge commit check for git 2.35
1 parent 28b65d3 commit 3c51aaf

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)