From f6a6486283ca07398945284f48511ce0fb6d3427 Mon Sep 17 00:00:00 2001 From: Eric Goodwin Date: Wed, 5 Mar 2008 18:09:33 -0800 Subject: Element reference should be an integer for stashes, not a symbol --- lib/git/stashes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git') diff --git a/lib/git/stashes.rb b/lib/git/stashes.rb index 78b1d59..e1287a5 100644 --- a/lib/git/stashes.rb +++ b/lib/git/stashes.rb @@ -41,8 +41,8 @@ module Git end end - def [](symbol) - @stashes[symbol.to_s] + def [](index) + @stashes[index.to_i] end end -- cgit