From bcd57e349c08bd7f076f8d6d2f39b702015358c1 Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Sat, 24 Jan 2009 11:00:23 -0500 Subject: Corrected a problem with commits_between returning None. This was caused by calling reverse on the list, which reverses the list in place and returns None. We really need tests for this. --- lib/git/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git/repo.py') diff --git a/lib/git/repo.py b/lib/git/repo.py index da18208c..a714eea1 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -138,12 +138,12 @@ class Repo(object): is the branch/commit name of the older item ``path`` - is an optinal path + is an optional path Returns ``git.Commit[]`` """ - return Commit.find_all(self, "%s..%s" % (frm, to), path).reverse() + return reversed(Commit.find_all(self, "%s..%s" % (frm, to))) def commits_since(self, start='master', path='', since='1970-01-01'): """ -- cgit v1.2.1