When building from a detached head, GitVersion errors out the build and the only option is to disable GitVersion. Instead a warning should be produced, and perhaps set the version to something like "HEAD-[SHA]" to show that this is not a normal build.