From c9312c2950830c53237dc42f5ce539427c3ab670 Mon Sep 17 00:00:00 2001 From: Dima Gerasimov Date: Fri, 5 Apr 2019 23:23:10 +0100 Subject: [PATCH] fix bug --- commits/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commits/__init__.py b/commits/__init__.py index 4c8a2b9..5a7be36 100644 --- a/commits/__init__.py +++ b/commits/__init__.py @@ -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),