unity-builder/dist/cloud-runner/cloneNoLFS.sh

34 lines
698 B
Bash
Raw Normal View History

#!/bin/sh
repoPathFull=$1
cloneUrl=$2
2021-08-15 14:50:46 +00:00
testLFSFile=$3
githubSha=$GITHUB_SHA
cd $repoPathFull
2021-08-08 08:00:41 +00:00
# stop annoying git detatched head info
git config --global advice.detachedHead false
echo ' '
echo "Cloning the repository being built:"
2021-08-01 00:01:54 +00:00
git lfs install --skip-smudge
git clone $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-08-15 23:40:16 +00:00
git lfs ls-files -l | cut -d ' ' -f1 | sort > .lfs-assets-guid
md5sum .lfs-assets-guid > .lfs-assets-guid-sum
2021-08-18 03:13:23 +00:00
export LFS_ASSETS_HASH="$(cat ${this.repoPathFull}/.lfs-assets-guid)"
2021-07-27 20:51:04 +00:00
echo ' '
2021-08-15 23:40:16 +00:00
echo 'Contents of .lfs-assets-guid file:'
cat .lfs-assets-guid
echo ' '
2021-08-15 23:40:16 +00:00
echo 'Contents of .lfs-assets-guid-sum file:'
cat .lfs-assets-guid-sum
2021-07-27 22:20:08 +00:00
echo ' '