From 919a87a05f15f433574c0a5be2f44f8536d4d8b1 Mon Sep 17 00:00:00 2001 From: Frostebite Date: Mon, 26 Jul 2021 00:07:54 +0100 Subject: [PATCH 1/2] Correct clone without LFS files --- dist/remote-builder/cloneNoLFS.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/remote-builder/cloneNoLFS.sh b/dist/remote-builder/cloneNoLFS.sh index 725bb40c..b8333b64 100755 --- a/dist/remote-builder/cloneNoLFS.sh +++ b/dist/remote-builder/cloneNoLFS.sh @@ -1,5 +1,7 @@ #!/bin/sh +apk add git-lfs + repoPathFull=$1 cloneUrl=$2 githubSha=$3 @@ -8,9 +10,8 @@ cd $repoPathFull echo ' ' echo "Cloning the repository being built:" -git clone $cloneUrl $githubSha - -apk add git-lfs +git clone --filter=blob:none --no-checkout $cloneUrl +git checkout $githubSha tree echo ' ' From 272c46b879e64ccdd4ce28ccbb31484901cf1433 Mon Sep 17 00:00:00 2001 From: Frostebite Date: Mon, 26 Jul 2021 00:16:20 +0100 Subject: [PATCH 2/2] Update cloneNoLFS.sh --- dist/remote-builder/cloneNoLFS.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/remote-builder/cloneNoLFS.sh b/dist/remote-builder/cloneNoLFS.sh index b8333b64..40da8278 100755 --- a/dist/remote-builder/cloneNoLFS.sh +++ b/dist/remote-builder/cloneNoLFS.sh @@ -10,8 +10,8 @@ cd $repoPathFull echo ' ' echo "Cloning the repository being built:" -git clone --filter=blob:none --no-checkout $cloneUrl -git checkout $githubSha +git clone --filter=blob:none --no-checkout $cloneUrl $repoPathFull +git --work-tree=$repoPathFull checkout $githubSha tree echo ' '