From 4bfcd8fcd2f128660a6e08ca1d19dd99fc520402 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 4 Jun 2018 15:12:38 -0700 Subject: [PATCH] Remove SortMode from list_commits The current version of libgit2 available (0.26.3) has different behavior with SortMode.TIME. It works correctly when left at the default (which is also how the rawhide version works). --- src/pylorax/api/recipes.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pylorax/api/recipes.py b/src/pylorax/api/recipes.py index 9d22d181..51035cd2 100644 --- a/src/pylorax/api/recipes.py +++ b/src/pylorax/api/recipes.py @@ -734,7 +734,6 @@ def list_commits(repo, branch, filename, limit=0): :raises: Can raise errors from Ggit """ revwalk = Git.RevisionWalker.new(repo) - revwalk.set_sort_mode(Git.SortMode.TIME) branch_ref = "refs/heads/%s" % branch revwalk.push_ref(branch_ref)