ayaports/user/ruby3.2-rugged/libgit2-fixture-dir.patch

13 lines
431 B
Diff
Raw Normal View History

2024-01-19 17:32:42 +00:00
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -130,7 +130,8 @@
end
TEST_DIR = File.dirname(File.expand_path(__FILE__))
- LIBGIT2_FIXTURE_DIR = File.expand_path("../../vendor/libgit2/tests/resources", __FILE__)
+ LIBGIT2_FIXTURE_DIR = ENV['LIBGIT2_FIXTURE_DIR'] \
+ || File.expand_path("../../vendor/libgit2/tests/resources", __FILE__)
end
class OnlineTestCase < TestCase