Fix LFS error during Geo setup
Problem
gitlab!20932 (comment 260193086)
git lfs error during Geo setup. Similar error during git pull
for existing GDK Geo installs.
➜ monozok@Mike-MBP ~/Developer/gdk-geo git:(master) gdk install gitlab_repo=../gdk/gitlab
(in /Users/monozok/Developer/gdk-geo)
command -v rake > /dev/null || gem install rake
rake preflight-checks
git clone ../gdk/gitlab gitlab
Cloning into 'gitlab'...
done.
Checking out files: 100% (27384/27384), done.
hint: The remote resolves to a file:// URL, which can only work with a
hint: standalone transfer agent. See section "Using a Custom Transfer Type
hint: without the API server" in custom-transfers.md for details.
Downloading spec/fixtures/git-cheat-sheet.pdf (7.4 MB)
hint: The remote resolves to a file:// URL, which can only work with a
hint: standalone transfer agent. See section "Using a Custom Transfer Type
hint: without the API server" in custom-transfers.md for details.
Error downloading object: spec/fixtures/git-cheat-sheet.pdf (35967a2): Smudge error: Error downloading spec/fixtures/git-cheat-sheet.pdf (35967a21e5d856eaea89d2e5dd55a5e3b5f4e1e4efe3b000ef6d60b31600f1d2): batch request: missing protocol: "file:///Users/monozok/Developer/gdk-geo/../gdk/gitlab/.git/info/lfs"
Errors logged to /Users/monozok/Developer/gdk-geo/gitlab/.git/lfs/logs/20191213T085526.188428577.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: spec/fixtures/git-cheat-sheet.pdf: 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'
make: *** [gitlab/.git] Error 128
Fix
Use --shared
option on git clone
.
- https://github.com/git-lfs/git-lfs/issues/3438#issuecomment-448310478
- https://github.com/git-lfs/git-lfs/issues/1207
As a bonus, it reduces wasted storage on our machines.
@geo-team Any reason not to use --shared
? Might it be problem for anyone's workflow?