Permalink
Browse files

fixed bug: when a file that has no changes was selected to be commite…

…d, unknown_paths was expected to have a method #keys, but ends up being an array; changed unknown_paths.key.each to unknown_paths.each for the fix
  • Loading branch information...
1 parent 3d541cc commit fc373a1f848cc1851fd6368b43e3c1940e7cbfc4 Paul Saieg committed Apr 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/cvs_commit.rb
View
@@ -96,7 +96,7 @@ def matches_to_status(matches)
if commit_paths.empty?
mup.div( "class" => "info" ) {
mup.text! "File(s) not modified; nothing to commit."
- mup.ul{ unknown_paths.keys.each { |path| mup.li(path) } }
+ mup.ul{ unknown_paths.each { |path| mup.li(path) } }
}
exit 0
end

0 comments on commit fc373a1

Please sign in to comment.