[FEATURE] Allow reset to work on HEADs detached from tags

This allows reset to work on working copies that have a HEAD detached
from a version-like tag (x.y.z).
Merge pull request #4 from kdambekalns/master

[FEATURE] Allow reset to work on HEADs detached from tags