From 5c3ef9871768f58334bcb107357d38076a6f90a1 Mon Sep 17 00:00:00 2001 From: Tim Metzler <33530562+tmetzl@users.noreply.github.com> Date: Tue, 22 Oct 2024 20:03:15 +0200 Subject: [PATCH] Make sure correct files are checked for modification time --- e2xauthoring/git/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2xauthoring/git/base.py b/e2xauthoring/git/base.py index 134743f..9726ef4 100644 --- a/e2xauthoring/git/base.py +++ b/e2xauthoring/git/base.py @@ -83,8 +83,8 @@ def get_repo_modification_time(self): """ if not self.is_version_controlled: return 0 - index_path = os.path.join(self.path, ".git", "index") - head_path = os.path.join(self.path, ".git", "HEAD") + index_path = os.path.join(self.repo_root, ".git", "index") + head_path = os.path.join(self.repo_root, ".git", "HEAD") timestamp = 0 if os.path.exists(index_path): timestamp = max(timestamp, os.path.getmtime(index_path))