Fix bad git methods.