summaryrefslogtreecommitdiff
path: root/lib/git/repo.py
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2009-01-24 11:00:23 -0500
committerMichael Trier <mtrier@gmail.com>2009-01-24 11:00:23 -0500
commitbcd57e349c08bd7f076f8d6d2f39b702015358c1 (patch)
treeb173cb761838e9d380f2c41819715ecf8d9f28dd /lib/git/repo.py
parent0ca61d4c68dad68901f8a7364dd210ef27a8b4c6 (diff)
downloadgitpython-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/repo.py')
-rw-r--r--lib/git/repo.py4
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'):
"""