summaryrefslogtreecommitdiffstats
path: root/lib/git/stashes.rb
diff options
context:
space:
mode:
authorEric Goodwin <eric@ericgoodwin.com>2008-03-05 18:09:33 -0800
committerEric Goodwin <eric@ericgoodwin.com>2008-03-05 18:09:33 -0800
commitf6a6486283ca07398945284f48511ce0fb6d3427 (patch)
treec100fbf189f0baf834fa17f267bd8adb5fe1e0f0 /lib/git/stashes.rb
parent2d749e3aa69d7bfedf814f59618f964fdbc300d5 (diff)
downloadthird_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.rb4
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