fix(publish): suggest using --allow-dirty on uncommitted changes (#22810)

This commit is contained in:
David Sherret 2024-03-08 17:49:15 -05:00 committed by GitHub
parent 071b3da020
commit 119744c285
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -952,7 +952,7 @@ pub async fn publish(
&& !publish_flags.allow_dirty
&& check_if_git_repo_dirty(cli_options.initial_cwd()).await
{
bail!("Aborting due to uncomitted changes",);
bail!("Aborting due to uncommitted changes. Check in source code or run with --allow-dirty");
}
perform_publish(

View File

@ -630,7 +630,7 @@ fn allow_dirty() {
.run();
output.assert_exit_code(1);
let output = output.combined_output();
assert_contains!(output, "Aborting due to uncomitted changes");
assert_contains!(output, "Aborting due to uncommitted changes. Check in source code or run with --allow-dirty");
let output = context
.new_command()