succeed in implementing rev-parse HEAD