diff options
author | Eric Goodwin <eric@ericgoodwin.com> | 2008-03-05 18:09:33 -0800 |
---|---|---|
committer | Eric Goodwin <eric@ericgoodwin.com> | 2008-03-05 18:09:33 -0800 |
commit | f6a6486283ca07398945284f48511ce0fb6d3427 (patch) | |
tree | c100fbf189f0baf834fa17f267bd8adb5fe1e0f0 /lib/git/stashes.rb | |
parent | 2d749e3aa69d7bfedf814f59618f964fdbc300d5 (diff) | |
download | third_party-ruby-git-f6a6486283ca07398945284f48511ce0fb6d3427.tar.gz third_party-ruby-git-f6a6486283ca07398945284f48511ce0fb6d3427.tar.xz third_party-ruby-git-f6a6486283ca07398945284f48511ce0fb6d3427.zip |
Element reference should be an integer for stashes, not a symbol
Diffstat (limited to 'lib/git/stashes.rb')
-rw-r--r-- | lib/git/stashes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |