Test getHeadRev on bare local mirror and on a working directory