use GIT_DIR env var
parent
3ebf2bfd1a
commit
e1c24d67e3
|
|
@ -2109,7 +2109,7 @@ class RemoteBuilder {
|
|||
echo "after making directories"
|
||||
tree ${buildPathFull}
|
||||
#
|
||||
echo "Cloning utility repositories required for building:"
|
||||
echo "Cloning utility repositories required for building"
|
||||
git clone --branch "remote-builder/unified-providers" ${repo} ${builderPathFull}
|
||||
git clone ${repo2} ${steamPathFull}
|
||||
#
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -4,16 +4,18 @@ repoPathFull=$1
|
|||
cloneUrl=$2
|
||||
githubSha=$3
|
||||
|
||||
export GIT_DIR=$repoPathFull
|
||||
|
||||
echo ''
|
||||
echo "Cloning the repository being built:"
|
||||
# DISABLE LFS
|
||||
git config --global filter.lfs.smudge "git-lfs smudge --skip -- %f"
|
||||
git config --global filter.lfs.process "git-lfs filter-process --skip"
|
||||
# Init new repo and setup origin
|
||||
git init --work-tree=$repoPathFull
|
||||
git remote add origin $cloneUrl --work-tree=$repoPathFull
|
||||
git init $repoPathFull
|
||||
git remote add origin $cloneUrl
|
||||
# Get remote version
|
||||
git fetch --work-tree=$repoPathFull origin
|
||||
git reset --work-tree=$repoPathFull --hard $githubSha
|
||||
git lfs ls-files --all --work-tree=$repoPathFull
|
||||
git fetch origin
|
||||
git reset --hard $githubSha
|
||||
git lfs ls-files --all
|
||||
echo ''
|
||||
|
|
|
|||
|
|
@ -118,7 +118,7 @@ class RemoteBuilder {
|
|||
echo "after making directories"
|
||||
tree ${buildPathFull}
|
||||
#
|
||||
echo "Cloning utility repositories required for building:"
|
||||
echo "Cloning utility repositories required for building"
|
||||
git clone --branch "remote-builder/unified-providers" ${repo} ${builderPathFull}
|
||||
git clone ${repo2} ${steamPathFull}
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue