mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 04:51:22 +00:00
fix(publish): suggest using --allow-dirty
on uncommitted changes (#22810)
This commit is contained in:
parent
071b3da020
commit
119744c285
@ -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(
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user