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

30 lines
542 B
Bash
Raw Normal View History

#!/bin/sh
repoPathFull=$1
cloneUrl=$2
githubSha=$3
testLFSFile=$4
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"
2021-07-31 21:41:55 +00:00
ls -l "$testLFSFile"
2021-07-27 22:20:08 +00:00
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-id
md5sum .lfs-assets-id > .lfs-assets-id-sum
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 22:31:23 +00:00
cat .lfs-assets-id
echo ' '
2021-07-27 22:20:08 +00:00
echo 'Contents of .lfs-assets-id-sum file:'
2021-07-27 22:31:23 +00:00
cat .lfs-assets-id-sum
2021-07-27 22:20:08 +00:00
echo ' '