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

32 lines
549 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:16:20 +00:00
git clone --filter=blob:none --no-checkout $cloneUrl $repoPathFull
2021-07-27 21:54:12 +00:00
git checkout $githubSha
2021-07-27 21:00:42 +00:00
echo "Checked out $githubSha"
echo ' '
2021-07-27 20:51:04 +00:00
echo 'Tree of cloned target repository:'
tree
echo ' '
2021-07-27 20:51:04 +00:00
echo 'List all LFS file hashes:'
2021-07-27 22:11:23 +00:00
git lfs ls-files -l | cut -d ' ' -f1 | sort
2021-07-27 20:51:04 +00:00
echo ' '
2021-07-27 20:51:04 +00:00
echo 'Contents of .lfs-assets-id file:'
2021-07-27 21:54:12 +00:00
git lfs ls-files --all | cut -d ' ' -f1 | sort > .lfs-assets-id
2021-07-27 20:51:04 +00:00
echo .lfs-assets-id
echo ' '