Skip to content

Commit

Permalink
fix(publish): suggest using --allow-dirty on uncommitted changes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dsherret authored and nathanwhit committed Mar 14, 2024
1 parent 9a4b096 commit 4999834
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/tools/registry/mod.rs
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/publish_tests.rs
Expand Up @@ -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()
Expand Down

0 comments on commit 4999834

Please sign in to comment.