We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b65d3 commit 3c51aafCopy full SHA for 3c51aaf
crates/rust-analyzer/tests/slow-tests/tidy.rs
@@ -139,10 +139,9 @@ fn check_cargo_toml(path: &Path, text: String) {
139
140
#[test]
141
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() {
+ let bors = cmd!("git rev-list --merges --author 'bors\\[bot\\]' HEAD~19..").read().unwrap();
+ let all = cmd!("git rev-list --merges HEAD~19..").read().unwrap();
+ if bors != all {
146
panic!(
147
"
148
Merge commits are not allowed in the history.
0 commit comments