Skip to content
/ rust Public
forked from rust-lang/rust

Commit 7ab10d2

Browse files
committed
Auto merge of rust-lang#3015 - RalfJung:miri-script, r=RalfJung
rustc-pull: put a newline after the commit ID
2 parents d1174a9 + 4b612a5 commit 7ab10d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/miri/miri-script/src/commands.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ impl Command {
173173
// the merge has confused the heck out of josh in the past.
174174
// We pass `--no-verify` to avoid running git hooks like `./miri fmt` that could in turn
175175
// trigger auto-actions.
176-
sh.write_file("rust-version", &commit)?;
176+
sh.write_file("rust-version", format!("{commit}\n"))?;
177177
const PREPARING_COMMIT_MESSAGE: &str = "Preparing for merge from rustc";
178178
cmd!(sh, "git commit rust-version --no-verify -m {PREPARING_COMMIT_MESSAGE}")
179179
.run()

0 commit comments

Comments
 (0)