Checkout fix
ObjGit replacement for parseReference

parseReference was only ever used to see if HEAD exists, so that's what the replacement does.