Checkout fails on git-tags, when .git directory is already present

This seems to describe the same issue: