noerw/tea:refactor-checkout
master
split up that big function, not sure if it helps with readability change in behaviour: now also allows checking out a PR whose head branch was deleted already.