mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-23 21:43:30 +08:00
support/download/git: add missing "git lfs install" invocation for LFS support
The original patch for commit cff428fe31
("download/git: support Git
LFS") included a call to "git lfs install" but this was a problem as it
could modify ~/.gitconfig outside the dl/ tree. When this was
updated it was thought that the modification to gitconfig was
unnecessary because the LFS fetch and checkout steps are performed
manually.
Unfortunately, this is not correct and the LFS checkout fails with:
Cannot checkout LFS objects, Git LFS is not installed.
Add the call to "git lfs install", with the --local option so that only
the repository's .git/config is modified and not the user's global
~/.gitconfig.
This is also required for submodules as the parent repository's config
is not inherited.
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Vincent Fazio <vfazio@xes-inc.com>
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
bc91d35da7
commit
338b2e58d4
@ -209,10 +209,12 @@ fi
|
||||
|
||||
# If there are large files then fetch them.
|
||||
if [ ${large_file} -eq 1 ]; then
|
||||
_git lfs install --local
|
||||
_git lfs fetch
|
||||
_git lfs checkout
|
||||
# If there are also submodules, recurse into them,
|
||||
if [ ${recurse} -eq 1 ]; then
|
||||
_git submodule foreach --recursive ${GIT} lfs install --local
|
||||
_git submodule foreach --recursive ${GIT} lfs fetch
|
||||
_git submodule foreach --recursive ${GIT} lfs checkout
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user