dealing with gits bad casing