From df27007c009077075f362f471c0e1491962a4f94 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 18 Oct 2023 12:22:01 -0700 Subject: [PATCH] wtf --- aider/repo.py | 2 +- tests/test_repo.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/aider/repo.py b/aider/repo.py index 77df46988..54ad862e3 100644 --- a/aider/repo.py +++ b/aider/repo.py @@ -206,7 +206,7 @@ class GitRepo: if not self.aider_ignore_file or not self.aider_ignore_file.is_file(): return fnames - mtime = self.aider_ignore_file.stat().st_mtime + mtime = Path(str(self.aider_ignore_file)).stat().st_mtime dump(mtime) if mtime != self.aider_ignore_ts: self.aider_ignore_ts = mtime diff --git a/tests/test_repo.py b/tests/test_repo.py index 8b5a0cb3a..243ce35c5 100644 --- a/tests/test_repo.py +++ b/tests/test_repo.py @@ -1,6 +1,5 @@ import os import tempfile -import time import unittest from pathlib import Path from unittest.mock import patch @@ -203,9 +202,6 @@ class TestRepo(unittest.TestCase): self.assertIn(str(fname), fnames) self.assertIn(str(fname2), fnames) - # github actions don't seem to update the mtime? - time.sleep(1) - aiderignore.write_text("new.txt\n") # new.txt should be gone!