Fixed a bug in coder.py where the git diff command was not properly executed.

This commit is contained in:
Paul Gauthier 2023-05-11 16:57:21 -07:00
parent 8e06300495
commit e6f88394f5

View file

@ -465,7 +465,7 @@ class Coder:
for fname in file_list:
relative_fname = os.path.relpath(fname, repo.working_tree_dir)
if self.pretty:
these_diffs = repo.git.diff("HEAD", "--color", "--", relative_fname)
these_diffs = repo.git.diff("HEAD", "--color", relative_fname)
else:
these_diffs = repo.git.diff("HEAD", relative_fname)