Skip to content

Commit 37f92a1

Browse files
committed
Use with_temp_index instead of with_index for JRuby compatibility
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 9a573a3 commit 37f92a1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/units/test_tree_ops.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ def test_read_tree
7979
assert(c.commit?)
8080
assert_equal('b40f7a9072cdec637725700668f8fdebe39e6d38', c.gtree.sha)
8181

82-
tmp = Tempfile.new('tesxt')
83-
tmppath = tmp.path
84-
tmp.close
85-
tmp.unlink
86-
87-
g.with_index(tmppath) do
82+
g.with_temp_index do
8883
g.read_tree('testbranch1', :prefix => 'b1/')
8984
g.read_tree('testbranch3', :prefix => 'b3/')
9085
index = g.ls_files

0 commit comments

Comments
 (0)