Commit graph

4 commits

Author SHA1 Message Date
Bob Van Landuyt
48b17e991a Add helper for accessing lfs_objects for project
This makes accessing LFS Objects for a project easier

  project.lfs_storage_project.lfs_objects`

becomes

  project.all_lfs_objects

This will make the refactor in
https://gitlab.com/gitlab-org/gitlab-ce/issues/39769 easier to deal
with.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
10d0f438d8 Download LFS-files from object storage for exports
Downloading the stream directly to the archive. In order to avoid
conflicts with the cache.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
79cb4d99c0 Import projects with LFS objects
If the LFS object already exist, we'll link it tot he existing one, if
not we'll create it.
2018-04-05 10:21:51 +02:00
Bob Van Landuyt
84ee2ddbcd Export LFS Objects when exporting a project
The LFS files will be included in the `lfs-objects` directory in the archive.
2018-04-05 10:21:51 +02:00