mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-29 12:03:55 +00:00
Don't exit the release script if there are uncommitted changes
Instead, all the user to fix them and retry.
This commit is contained in:
1 parent
6c16734cf3
commit
ff242faad0
1 file changed
+4
-2
@@ -820,8 +820,10 @@ def get_repo_and_check_clean_checkout(
|
||||
raise click.ClickException(
|
||||
f"{path} is not a git repository (expecting a {name} repository)."
|
||||
)
|
||||
if repo.is_dirty():
|
||||
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?"):
|
||||
raise click.ClickException("Aborted.")
|
||||
|
||||
return repo
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user