git HEAD might be no symref warnings, resolve HEAD properly