From 4da35868a45a0967a9586f81b23a982316c9157b Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Sat, 30 Aug 2008 14:11:30 +0200 Subject: fix commit order of GitRepository.commits() we request since..until but got until..since. This makes the order of changelog entries generated by git-dch the same order as if git-dch would be called individually for each commit. --- gbp/git_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gbp/git_utils.py b/gbp/git_utils.py index 13845d56..7272e10c 100644 --- a/gbp/git_utils.py +++ b/gbp/git_utils.py @@ -101,7 +101,7 @@ class GitRepository(object): ['%s..%s' % (start, end), '--', paths]) if ret: raise GitRepositoryError, "Error getting commits %s..%s%s" % (start, end, ["", " on %s" % paths][len(paths) > 0] ) - return [ commit.strip() for commit in commits ] + return [ commit.strip() for commit in commits[::-1] ] def show(self, id): """git-show id""" -- cgit v1.2.3