Fix for a traceback in the git module