mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
Tell git to stop quoting the paths in ls-files
This commit is contained in:
parent
c4e4d071fa
commit
7c0ac4d92f
2 changed files with 19 additions and 3 deletions
|
@ -964,9 +964,13 @@ class Coder:
|
|||
def get_tracked_files(self):
|
||||
if not self.repo:
|
||||
return []
|
||||
|
||||
files = self.repo.git.execute(["git", "-c", "core.quotepath=off", "ls-files"])
|
||||
files = set(files.splitlines())
|
||||
|
||||
# convert to appropriate os.sep, since git always normalizes to /
|
||||
files = set(self.repo.git.ls_files().splitlines())
|
||||
res = set(str(Path(PurePosixPath(path))) for path in files)
|
||||
|
||||
return res
|
||||
|
||||
apply_update_errors = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue