diff options
author | Michael Trier <mtrier@gmail.com> | 2009-01-24 11:00:23 -0500 |
---|---|---|
committer | Michael Trier <mtrier@gmail.com> | 2009-01-24 11:00:23 -0500 |
commit | bcd57e349c08bd7f076f8d6d2f39b702015358c1 (patch) | |
tree | b173cb761838e9d380f2c41819715ecf8d9f28dd /lib/git | |
parent | 0ca61d4c68dad68901f8a7364dd210ef27a8b4c6 (diff) | |
download | gitpython-bcd57e349c08bd7f076f8d6d2f39b702015358c1.tar.gz |
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.
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'): """ |