diff --git a/src/cargo/ops/cargo_package.rs b/src/cargo/ops/cargo_package.rs index afb00edd63f..c275ceb463f 100644 --- a/src/cargo/ops/cargo_package.rs +++ b/src/cargo/ops/cargo_package.rs @@ -291,7 +291,7 @@ fn check_repo_state( failure::bail!( "{} files in the working directory contain changes that were \ not yet committed into git:\n\n{}\n\n\ - to proceed despite this, pass the `--allow-dirty` flag", + to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag", dirty.len(), dirty.join("\n") ) diff --git a/tests/testsuite/package.rs b/tests/testsuite/package.rs index ff92ddb44bf..affc22add32 100644 --- a/tests/testsuite/package.rs +++ b/tests/testsuite/package.rs @@ -758,7 +758,7 @@ committed into git: Cargo.toml -to proceed despite this, pass the `--allow-dirty` flag +to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag ", ) .run(); diff --git a/tests/testsuite/publish.rs b/tests/testsuite/publish.rs index 35d6baf7c6a..15a5a9d1204 100644 --- a/tests/testsuite/publish.rs +++ b/tests/testsuite/publish.rs @@ -396,7 +396,7 @@ committed into git: bar -to proceed despite this, pass the `--allow-dirty` flag +to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag ", ) .run();