unity-builder/dist/remote-builder/cloneNoLFS.sh

26 lines
409 B
Bash
Raw Normal View History

#!/bin/sh
2021-07-25 23:07:54 +00:00
apk add git-lfs
repoPathFull=$1
cloneUrl=$2
githubSha=$3
cd $repoPathFull
echo ' '
echo "Cloning the repository being built:"
2021-07-25 23:07:54 +00:00
git clone --filter=blob:none --no-checkout $cloneUrl
git checkout $githubSha
tree
echo ' '
# List git lfs files
git lfs ls-files --all
echo ' '
git lfs ls-files -l | cut -d ' ' -f1 | sort
echo ' '
2021-07-13 00:12:49 +00:00
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
echo ' '