fix: Handle missing git module gracefully

This commit is contained in:
Paul Gauthier 2024-12-14 09:42:54 -08:00 committed by Paul Gauthier (aider)
parent 65555b5dd0
commit f62ef34715
4 changed files with 36 additions and 11 deletions

View file

@ -3,7 +3,11 @@
import sys
from pathlib import Path
import git
try:
import git
except ImportError:
git = None
from diff_match_patch import diff_match_patch
from tqdm import tqdm