t5616: use rev-parse instead to get HEAD's object_id