Skip to content

Commit 561ebcb

Browse files
committed
fix
1 parent 2800f84 commit 561ebcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def analyze_sources(self, ignore: Optional[List[str]] = None) -> Graph:
8686
try:
8787
# Save processed commit hash to the DB
8888
repo = Repository(self.path)
89-
current_commit = repo.head.commit
90-
set_repo_commit(self.name, current_commit.hexsha)
89+
current_commit = repo.walk(repo.head.target).__next__()
90+
set_repo_commit(self.name, current_commit.hex)
9191
except Exception:
9292
# Probably not .git folder is missing
9393
pass

0 commit comments

Comments
 (0)