Support LFS objects when creating a project by import
If you import a project with LFS objects, the LFS objects are not imported resulting in errors when cloned locally.
git clone git@gitlab.com:jramsay/import-lfs-git-url.git
Cloning into 'import-lfs-git-url'...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 7 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (7/7), done.
Downloading geo_nodes.png (19 KB)
Error downloading object: geo_nodes.png (1d165e3): Smudge error: Error downloading geo_nodes.png (1d165e3d140b90306fd606a2a283b63849e85d93ef13bc78a669b86bf4112fa9): [1d165e3d140b90306fd606a2a283b63849e85d93ef13bc78a669b86bf4112fa9] Object does not exist on the server or you don't have permissions to access it: [404] Object does not exist on the server or you don't have permissions to access it
Errors logged to /Users/jramsay/gitlab/import-lfs-git-url/.git/lfs/objects/logs/20171121T142852.439999.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: geo_nodes.png: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'
Steps to reproduce
- Create a project, and add an LFS object to the project (e.g. https://gitlab.com/jramsay/lfs-test)
- Create a new project and import using the http git url (e.g. https://gitlab.com/jramsay/import-lfs-git-url)
- Clone the new project and the LFS objects cannot be downloaded