Skip to content
Snippets Groups Projects

Ensure that Blob.raw returns always returns a valid blob object

Merged Stan Hu requested to merge sh-blob-raw-check into master
Files
2
+ 2
0
@@ -32,6 +32,8 @@ module Gitlab
else
blob = repository.lookup(sha)
next unless blob.is_a?(Rugged::Blob)
new(
id: blob.oid,
size: blob.size,
Loading