Skip to content

Commit

Permalink
Merge pull request #21 from DigiKlausur/fix_repo_modification_time
Browse files Browse the repository at this point in the history
Make sure correct files are checked for modification time
  • Loading branch information
tmetzl authored Oct 22, 2024
2 parents 64ab259 + 5c3ef98 commit c4e1462
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 c4e1462

Please sign in to comment.