Closed jennybc closed 3 years ago
I don't see an easy fix, i.e. it suggests some nontrivial refactoring where we proactively identify the PR situation. Relevant facts:
Instead of having one logical flow that handles all scenarios, it might be easier to characterize the situation and use logic specific to that scenario. This comment is nominally about pr_finish()
but may also apply to pr_fetch()
.
As a result, we never get to all the cleanup code, e.g. deleting the local branch.
Current workaround: just call
pr_finish()
(no argument!) again.