Fix getting real revision from local repo