Add a method for getting the repo HEAD