diff options
author | Guido Guenther <agx@sigxcpu.org> | 2008-08-30 14:11:30 +0200 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-08-30 14:16:34 +0200 |
commit | 4da35868a45a0967a9586f81b23a982316c9157b (patch) | |
tree | dbbef86ed086cc53d8338c72868295f67cc0d09f | |
parent | 037626575b2a085c75cb1c3e2aa7d2977af6a61d (diff) |
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.
-rw-r--r-- | gbp/git_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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""" |