mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
fix(publish): suggest using --allow-dirty
on uncommitted changes (#22810)
This commit is contained in:
parent
071b3da020
commit
119744c285
2 changed files with 2 additions and 2 deletions
|
@ -952,7 +952,7 @@ pub async fn publish(
|
||||||
&& !publish_flags.allow_dirty
|
&& !publish_flags.allow_dirty
|
||||||
&& check_if_git_repo_dirty(cli_options.initial_cwd()).await
|
&& 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(
|
perform_publish(
|
||||||
|
|
|
@ -630,7 +630,7 @@ fn allow_dirty() {
|
||||||
.run();
|
.run();
|
||||||
output.assert_exit_code(1);
|
output.assert_exit_code(1);
|
||||||
let output = output.combined_output();
|
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
|
let output = context
|
||||||
.new_command()
|
.new_command()
|
||||||
|
|
Loading…
Add table
Reference in a new issue