Skip to content

Commit f6a6486

Browse files
committed
Element reference should be an integer for stashes, not a symbol
1 parent 2d749e3 commit f6a6486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/git/stashes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ def each
4141
end
4242
end
4343

44-
def [](symbol)
45-
@stashes[symbol.to_s]
44+
def [](index)
45+
@stashes[index.to_i]
4646
end
4747

4848
end

0 commit comments

Comments
 (0)