Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Formula/gitfs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ def caveats
end

test do
xy = Language::Python.major_minor_version Formula["python@3.9"].opt_bin/"python3"
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python#{xy}/site-packages"
python = "python3.9"
ENV.prepend_create_path "PYTHONPATH", libexec/Language::Python.site_packages(python)

(testpath/"test.py").write <<~EOS
import gitfs
import pygit2
pygit2.init_repository('testing/.git', True)
EOS

system Formula["python@3.9"].opt_bin/"python3", "test.py"
system python, "test.py"
assert_predicate testpath/"testing/.git/config", :exist?
cd "testing" do
system "git", "remote", "add", "homebrew", "https://github.com/Homebrew/homebrew-core.git"
Expand Down