Later in this PR, you explicitly check for an import error and set `git = None` if it occurs.  But not here?