make it work on detached checkout like tags. fixes #1