Skip to content

Commit

Permalink
Workaround regression in recent rugged versions
Browse files Browse the repository at this point in the history
Recent versions of rugged are not accepting Rugged::Commit as an
argument to Rugged::Walker#push. We can workaround this by passing
string oid.

Closes mmozuras#15
Refs. libgit2/rugged#860
  • Loading branch information
bak1an committed Dec 9, 2020
1 parent 6d8e2db commit 71ea830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/poper/runner.rb
Expand Up @@ -32,7 +32,7 @@ def rules
def commits
@commits ||= begin
walker.reset
walker.push(@repo.last_commit)
walker.push(@repo.last_commit.oid)
walker.take_while { |c| c.oid != @commit.oid } << @commit
end
end
Expand Down

0 comments on commit 71ea830

Please sign in to comment.