Import from github for projects with LFS does not work
If I import a project from Github that uses LFS, the subsequent clone fails.
- Import a project from Github
- Clone it
- See error logged:
○ git clone firstname.lastname@example.org:**** Cloning into '****'... remote: Counting objects: 1436, done. remote: Compressing objects: 100% (775/775), done. remote: Total 1436 (delta 611), reused 1436 (delta 611) Receiving objects: 100% (1436/1436), 2.13 MiB | 949.00 KiB/s, done. Resolving deltas: 100% (611/611), done. Checking connectivity... done. Downloading ****.png (957 B) Error downloading object: ****.png (a67be8c47e20e0311f935c537e05ded414d65fd15bad30ae65d39480e5d3f799) Errors logged to ****/.git/lfs/objects/logs/20160912T182822.44974357.log Use `git lfs logs last` to view the log. error: external filter git-lfs smudge -- %f failed 2 error: external filter git-lfs smudge -- %f failed fatal: ****.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'
FWIW, I worked around this by running:
git lfs fetch --alland
git lfs push gitlab --all.
what arguments did you use for the commands?
As stated above, I imported the project using Gitlab's web UI to import from Github.
Then, I ran:
git clone email@example.com:****
****is the name of a private repository (which I'd rather not disclose here).
Can you give some detail please?
Sure, what would you like to know?