forked from infra/keys
wtf reflist
This commit is contained in:
parent
dabd8424c4
commit
e7027c07be
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue