fix bug
This commit is contained in:
parent
be7c0a1dc8
commit
c9312c2950
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ def iter_commits(repo: PathIsh, ref=None):
|
||||||
rr = repo.name
|
rr = repo.name
|
||||||
gr = git.Repo(repo)
|
gr = git.Repo(repo)
|
||||||
# without path might not handle pull heads properly
|
# 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):
|
if by_me(c):
|
||||||
yield Commit(
|
yield Commit(
|
||||||
commited_dt=fix_datetime(c.committed_datetime),
|
commited_dt=fix_datetime(c.committed_datetime),
|
||||||
|
|
Loading…
Add table
Reference in a new issue