2024-09-23 19:05:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-09-23 12:29:59 +00:00
|
|
|
export Repo=$1
|
|
|
|
export RepoRef=$2
|
|
|
|
export UrlBase=$3
|
|
|
|
|
|
|
|
export UrlLfsBase=${UrlBase}/${Repo}.git/info/lfs/objects
|
|
|
|
export Auth=$(git config --get --local http.${UrlBase}/.extraheader)
|
|
|
|
git config --local http.${UrlLfsBase}/batch.extraheader "$Auth"
|
|
|
|
git config --local http.${UrlLfsBase}/.extraheader ''
|
|
|
|
|
|
|
|
git config --local lfs.transfer.maxretries 1
|
|
|
|
|
|
|
|
git lfs install
|
2024-09-23 19:27:33 +00:00
|
|
|
git lfs pull origin ${RepoRef}
|