From 71ea830409455de59a43ce21c2fcbecf08b799e7 Mon Sep 17 00:00:00 2001 From: Anton Baklanov Date: Tue, 8 Dec 2020 23:09:41 -0300 Subject: [PATCH] Workaround regression in recent rugged versions 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 #15 Refs. https://github.com/libgit2/rugged/issues/860 --- lib/poper/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/poper/runner.rb b/lib/poper/runner.rb index 834c452..38fbcfa 100644 --- a/lib/poper/runner.rb +++ b/lib/poper/runner.rb @@ -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