Skip to content

Commit 1424be5

Browse files
committed
1 parent 000caed commit 1424be5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Formula/p/pygit2.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def install
3636
assert_empty resources, "This formula should not have any resources!"
3737

3838
pythons.each do |python3|
39-
pyversion = Language::Python.major_minor_version(python3)
39+
pyversion = Language::Python.major_minor_version(python3).to_s
4040

41-
(testpath/"#{pyversion}/hello.txt").write "Hello, pygit2."
41+
(testpath/pyversion/"hello.txt").write "Hello, pygit2."
4242
mkdir pyversion do
4343
system python3, "-c", <<~PYTHON
4444
import pygit2
45-
repo = pygit2.init_repository('#{testpath}/#{pyversion}', False) # git init
45+
repo = pygit2.init_repository('#{testpath/pyversion}', False) # git init
4646
4747
index = repo.index
4848
index.add('hello.txt')

0 commit comments

Comments
 (0)