• Stan Hu's avatar
    Ensure that Blob.raw returns always returns a valid blob object · 794b4c55
    Stan Hu authored
    In gitlab-org/gitlab-ee!2976, we saw that a given OID could point
    to a commit, which would cause the delta size check to fail.
    Gitaly already returns nil if the OID isn't a blob, so this change
    makes the Rugged implementation consistent.
    794b4c55
blob_spec.rb 13.3 KB