diff options
-rw-r--r-- | lib/git/repo.py | 2 | ||||
-rw-r--r-- | test/git/test_commit.py | 2 | ||||
-rw-r--r-- | test/git/test_performance.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 58eb6ba1..2beda9be 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -427,7 +427,7 @@ class Repo(object): Commits that do not contain that path or the paths will not be returned. ``kwargs`` - Arguments to be passed to git-rev-parse - common ones are + Arguments to be passed to git-rev-list - common ones are max_count and skip Note: to receive only commits between two named revisions, use the diff --git a/test/git/test_commit.py b/test/git/test_commit.py index e8bc078a..48937c93 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -97,7 +97,7 @@ class TestCommit(TestBase): def test_iteration(self): # we can iterate commits - all_commits = Commit.list_items(self.rorepo, 'master') + all_commits = Commit.list_items(self.rorepo, self.rorepo.head) assert all_commits assert all_commits == list(self.rorepo.iter_commits()) diff --git a/test/git/test_performance.py b/test/git/test_performance.py index 588f1e14..72acfcac 100644 --- a/test/git/test_performance.py +++ b/test/git/test_performance.py @@ -13,9 +13,12 @@ class TestPerformance(TestBase): def _query_commit_info(self, c): c.author c.authored_date + c.author_tz_offset c.committer c.committed_date + c.committer_tz_offset c.message + c.parents def test_iteration(self): num_objs = 0 |