Add checks if blob is a lfs pointer, values for size and oid.
Depends on gitlab-org/gitlab-ce!1976
Merge request reports
Activity
223 224 def lfs_pointer? 225 if !empty? && text? && data.starts_with?("version https://git-lfs.github.com/spec") 226 true 227 else 228 false 229 end 230 end 231 232 def lfs_oid 233 if lfs_pointer? 234 oid = data.match(/(?<=sha256:)([0-9a-f]{64})/) 235 return oid[1] if oid 236 end 237 238 nil mentioned in merge request gitlab-git-test!6 (merged)
Added 1 commit:
- 12d2af43 - Add blob specs for lfs blobs, refactor.
mentioned in commit gitlab-git-test@0e50ec4d
Added 1 commit:
- 22de0653 - Fix failing specs.
Added 1 commit:
- f2d08c94 - Change the name for the lfs version check method.
Added 1 commit:
- f23a536a - Don't use if else.
Reassigned to @DouweM
@DouweM Removed WIP on this one and assigned it to you.
mentioned in commit 260d863a
mentioned in commit tnir/gitlab-ce@51ed5225
Mentioned in commit pfjason/gitlab-ce@51ed5225
Please register or sign in to reply