Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733372 - dev-vcs/git-lfs does not fetch large files by default
Summary: dev-vcs/git-lfs does not fetch large files by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nils Freydank
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-07-21 00:36 UTC by Vitaly Zdanevich
Modified: 2021-02-01 21:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Zdanevich 2020-07-21 00:36:36 UTC
This is a known issue with git-lfs that instead of lfs files we get pointers, like:

cat my-big-lfs-file
version https://git-lfs.github.com/spec/v1
oid sha256:0fdc01f4275862cbcf450d6d25ceefdc0377d24869dda527303c653acbf1487b
size 427266135

In order to fix it - please execute `git lfs install` from the ebuild.

Now after emerge `git lfs env` returns this (3 last lines):
git config filter.lfs.process = ""
git config filter.lfs.smudge = ""
git config filter.lfs.clean = ""

After `git lfs install`:
git config filter.lfs.process = "git-lfs filter-process"
git config filter.lfs.smudge = "git-lfs smudge -- %f"
git config filter.lfs.clean = "git-lfs clean -- %f"


Reference: https://stackoverflow.com/a/56284009/1879101
Comment 1 Nils Freydank 2020-07-31 10:04:58 UTC
Hi,

from upstream's documentation I read that "git lfs install" only installs for the specific user account that calls this command: "...set up Git LFS for your user account by running: ...", so I don't think there is a way to install git-lfs via the ebuild.

As a workaround I'll add a note via elog or similar telling the user what to do.
Comment 2 Vitaly Zdanevich 2020-07-31 14:14:29 UTC
ok