From 462bb3cb19b2ac387ff272606bb603dbc4962978 Mon Sep 17 00:00:00 2001 From: Frostebite Date: Tue, 13 Jul 2021 01:12:49 +0100 Subject: [PATCH] late install git lfs --- dist/remote-builder/cloneNoLFS.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/dist/remote-builder/cloneNoLFS.sh b/dist/remote-builder/cloneNoLFS.sh index c06e34da..725bb40c 100755 --- a/dist/remote-builder/cloneNoLFS.sh +++ b/dist/remote-builder/cloneNoLFS.sh @@ -8,16 +8,9 @@ cd $repoPathFull echo ' ' echo "Cloning the repository being built:" -# DISABLE LFS -export GIT_LFS_SKIP_SMUDGE=1 -# Init new repo and setup origin -git init -git remote add origin $cloneUrl -# Get remote version -git fetch origin -git reset --hard $githubSha -# ENABLE LFS -export GIT_LFS_SKIP_SMUDGE=0 +git clone $cloneUrl $githubSha + +apk add git-lfs tree echo ' ' @@ -26,6 +19,6 @@ git lfs ls-files --all echo ' ' git lfs ls-files -l | cut -d ' ' -f1 | sort echo ' ' -git lfs ls-files -l | cut -d ' ' -f1 | sort > $1/.lfs-assets-id +git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id echo ' '