diff options
-rw-r--r-- | gbp/git.py | 2 | ||||
-rwxr-xr-x | git-dch | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -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""" @@ -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: |