The context manager would previously just terminate early on exception. As a result, the worktree and branch would not get pruned when update script failed. Let’s wrap the cleanup code in `finally` block as suggested by Python docs: https://docs.python.org/3/library/contextlib.html#contextlib.contextmanager
10 KiB
10 KiB