[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).