Elaborate getting a current working copy.

The `git checkout` step from #3098 got removed by some merge, so here it is again.
No, it is meant to be mutually exclusive with the section above. Read line 45 as and `else` and 52 as `finally`.