Permalink
Browse files

better rev_parse errors

  • Loading branch information...
tmm1 committed Mar 4, 2011
1 parent 0574dd7 commit f7e990a575868243883a133069e976ab440bf692
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/grit/git-ruby.rb
View
@@ -74,7 +74,7 @@ def rev_list(options, *refs)
end
def rev_parse(options, string)
- raise RuntimeError, "invalid string: #{string}" unless string.is_a?(String)
+ raise RuntimeError, "invalid string: #{string.inspect}" unless string.is_a?(String)
if string =~ /\.\./
(sha1, sha2) = string.split('..')

0 comments on commit f7e990a

Please sign in to comment.