Skip to content

Commit

Permalink
Remove SortMode from list_commits
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
bcl committed Jun 11, 2018
1 parent 3cfb895 commit 4bfcd8f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pylorax/api/recipes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4bfcd8f

Please sign in to comment.