mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
added debug output
This commit is contained in:
parent
f3af05f3ee
commit
55b1634811
2 changed files with 9 additions and 1 deletions
|
@ -244,10 +244,18 @@ class Coder:
|
||||||
self.repo = git.Repo(repo_paths.pop(), odbt=git.GitDB)
|
self.repo = git.Repo(repo_paths.pop(), odbt=git.GitDB)
|
||||||
|
|
||||||
self.root = self.repo.working_tree_dir
|
self.root = self.repo.working_tree_dir
|
||||||
|
if self.verbose:
|
||||||
|
dump(self.repo)
|
||||||
|
dump(self.root)
|
||||||
|
dump(os.getcwd())
|
||||||
|
|
||||||
new_files = []
|
new_files = []
|
||||||
for fname in self.abs_fnames:
|
for fname in self.abs_fnames:
|
||||||
relative_fname = self.get_rel_fname(fname)
|
relative_fname = self.get_rel_fname(fname)
|
||||||
|
if self.verbose:
|
||||||
|
dump(fname)
|
||||||
|
dump(relative_fname)
|
||||||
|
|
||||||
tracked_files = set(self.get_tracked_files())
|
tracked_files = set(self.get_tracked_files())
|
||||||
if relative_fname not in tracked_files:
|
if relative_fname not in tracked_files:
|
||||||
new_files.append(relative_fname)
|
new_files.append(relative_fname)
|
||||||
|
|
|
@ -37,7 +37,7 @@ class TestMain(TestCase):
|
||||||
subprocess.run(["git", "init"])
|
subprocess.run(["git", "init"])
|
||||||
subprocess.run(["git", "config", "user.email", "dummy@example.com"])
|
subprocess.run(["git", "config", "user.email", "dummy@example.com"])
|
||||||
subprocess.run(["git", "config", "user.name", "Dummy User"])
|
subprocess.run(["git", "config", "user.name", "Dummy User"])
|
||||||
main(["--yes", "foo.txt"], input=DummyInput(), output=DummyOutput())
|
main(["--verbose", "--yes", "foo.txt"], input=DummyInput(), output=DummyOutput())
|
||||||
self.assertTrue(os.path.exists("foo.txt"))
|
self.assertTrue(os.path.exists("foo.txt"))
|
||||||
|
|
||||||
def test_main_args(self):
|
def test_main_args(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue