We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c16734 commit ff242faCopy full SHA for ff242fa
scripts-dev/release.py
@@ -820,8 +820,10 @@ def get_repo_and_check_clean_checkout(
820
raise click.ClickException(
821
f"{path} is not a git repository (expecting a {name} repository)."
822
)
823
- if repo.is_dirty():
824
- raise click.ClickException(f"Uncommitted changes exist in {path}.")
+ while repo.is_dirty():
+ if not click.confirm(f"Uncommitted changes exist in {path}. Commit or stash them. Ready to continue?"):
825
+ raise click.ClickException("Aborted.")
826
+
827
return repo
828
829
0 commit comments