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).
This commit is contained in:
Brian C. Lane 2018-06-04 15:12:38 -07:00
parent 3cfb895054
commit 4bfcd8fcd2
1 changed files with 0 additions and 1 deletions

View File

@ -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)