aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gbp/git.py2
-rwxr-xr-xgit-dch5
2 files changed, 5 insertions, 2 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 1e06d55e..3880b473 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -294,7 +294,7 @@ class GitRepository(object):
where = " on %s" % paths if paths else ""
raise GitRepositoryError, ("Error getting commits %s..%s%s" %
(since, until, where))
- return [ commit.strip() for commit in commits[::-1] ]
+ return [ commit.strip() for commit in commits ]
def show(self, id):
"""git-show id"""
diff --git a/git-dch b/git-dch
index 5ba80fab..423f3cd6 100755
--- a/git-dch
+++ b/git-dch
@@ -413,7 +413,10 @@ def main(argv):
if args:
gbp.log.info("Only looking for changes on '%s'" % " ".join(args))
- commits = repo.commits(since=since, until=until, paths=" ".join(args), options=options.git_log.split(" "))
+ commits = repo.commits(since=since, until=until,
+ paths=" ".join(args),
+ options=options.git_log.split(" "))
+ commits.reverse()
# add a new changelog section if:
if options.new_version or options.bpo or options.nmu or options.qa: