Make sure git hash from HEAD is properly stripped.