Skip to content

Commit

Permalink
Make sure correct files are checked for modification time
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl authored Oct 22, 2024
1 parent 64ab259 commit 5c3ef98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions e2xauthoring/git/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 5c3ef98

Please sign in to comment.