Skip to content

Commit 51c757b

Browse files
committed
Auto merge of #3830 - ehuss:fix-squash-message, r=JohnTitor
Fix squash message warning. rust-lang/rust#87671 added a warning when backslash continuations eat multiple lines. This uncovered that the message for squashing the index was missing some blank lines. This adds some newlines to silence the warning and fix the message formatting.
2 parents 1097171 + 8fb8972 commit 51c757b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/git.rs

-3
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,8 @@ pub fn squash_index(env: &Environment) -> Result<(), PerformError> {
398398
let now = Utc::now().format("%Y-%m-%d");
399399
let original_head = repo.head_oid()?.to_string();
400400
let msg = format!("Collapse index into one commit\n\n\
401-
402401
Previous HEAD was {}, now on the `snapshot-{}` branch\n\n\
403-
404402
More information about this change can be found [online] and on [this issue].\n\n\
405-
406403
[online]: https://internals.rust-lang.org/t/cargos-crate-index-upcoming-squash-into-one-commit/8440\n\
407404
[this issue]: https://github.com/rust-lang/crates-io-cargo-teams/issues/47", original_head, now);
408405

0 commit comments

Comments
 (0)