Handling the case of detached HEAD, only a Hash is found in the hash file.