Skip to content

Commit

Permalink
Merge pull request #380 from renatolond/fix_walk
Browse files Browse the repository at this point in the history
Fix commits until walk
  • Loading branch information
mknapik authored Jun 8, 2020
2 parents e549a7b + 4a2f93b commit f2c62cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pronto/git/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def show_commit(sha)

def commits_until(sha)
result = []
@repo.walk(head, Rugged::SORT_TOPO).take_while do |commit|
@repo.walk(head_commit_sha, Rugged::SORT_TOPO).take_while do |commit|
result << commit.oid
!commit.oid.start_with?(sha)
end
Expand Down

0 comments on commit f2c62cd

Please sign in to comment.