lib/git_local/object.rb in git_local-0.0.4 vs lib/git_local/object.rb in git_local-0.0.5

- old
+ new

@@ -15,10 +15,10 @@ def read(max_lines = nil) return contents if max_lines.nil? File.foreach(path).first(max_lines).join - rescue StandardError => e + rescue StandardError raise NotFound end def sha Digest::SHA1.hexdigest("blob " + contents.length.to_s + "\0" + contents)