Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: don't detach head if the ref already points to the right place
The first time we export to Git, we don't actually export anything. That's a little weird and I don't know why I did it that way. It seems more natural to export the current state. I'd like to change it to do that. However, that currently means we'll detach the current HEAD if it points to any of the branches we export. This patch restructures the code a bit and skips the detach step if the target branch already points to the right commit.
- Loading branch information