mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 22:04:59 +00:00
Fixed a bug in coder.py where the git diff command was not properly executed.
This commit is contained in:
parent
8e06300495
commit
e6f88394f5
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ class Coder:
|
||||||
for fname in file_list:
|
for fname in file_list:
|
||||||
relative_fname = os.path.relpath(fname, repo.working_tree_dir)
|
relative_fname = os.path.relpath(fname, repo.working_tree_dir)
|
||||||
if self.pretty:
|
if self.pretty:
|
||||||
these_diffs = repo.git.diff("HEAD", "--color", "--", relative_fname)
|
these_diffs = repo.git.diff("HEAD", "--color", relative_fname)
|
||||||
else:
|
else:
|
||||||
these_diffs = repo.git.diff("HEAD", relative_fname)
|
these_diffs = repo.git.diff("HEAD", relative_fname)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue