removed unnecessary code that caused bugs with older versions of Git