diff --git a/zest/releaser/baserelease.py b/zest/releaser/baserelease.py index f0b8f60a..82b4e88b 100644 --- a/zest/releaser/baserelease.py +++ b/zest/releaser/baserelease.py @@ -408,7 +408,11 @@ def _push(self): default_anwer = self.zest_releaser_config.push_changes() if utils.ask("OK to push commits to the server?", default=default_anwer): for push_cmd in push_cmds: - output = execute_command(push_cmd) + output = execute_command( + push_cmd, + allow_retry=True, + fail_message="Perhaps the main branch is protected?", + ) logger.info(output) def _run_hooks(self, when):