wtf reflist

This commit is contained in:
kleines Filmröllchen 2025-01-28 11:21:54 +01:00
parent dabd8424c4
commit e7027c07be
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8

View file

@ -30,6 +30,7 @@ def collect_user_dirs():
def last_commit_for(dir: Path, ref: git.Reference): def last_commit_for(dir: Path, ref: git.Reference):
"""Returns the Git commit signature for the last commit on this path.""" """Returns the Git commit signature for the last commit on this path."""
last_commit_hash = str(ref.repo.git.rev_list("--max-count=1", action_ref, dir)) last_commit_hash = str(ref.repo.git.rev_list("--max-count=1", action_ref, dir))
log.debug(last_commit_hash)
return ref.repo.commit(last_commit_hash) return ref.repo.commit(last_commit_hash)