This commit is contained in:
Dima Gerasimov 2019-04-05 23:23:10 +01:00
parent be7c0a1dc8
commit c9312c2950

View file

@ -70,7 +70,7 @@ def iter_commits(repo: PathIsh, ref=None):
rr = repo.name
gr = git.Repo(repo)
# without path might not handle pull heads properly
for c in gr.iter_commits(rev=ref.path):
for c in gr.iter_commits(rev=None if ref is None else ref.path):
if by_me(c):
yield Commit(
commited_dt=fix_datetime(c.committed_datetime),