diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2019-09-12 09:32:05 +0300 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2019-09-13 08:33:05 +0300 |
commit | eeb890732e02978c1959c46bef7255b233624643 (patch) | |
tree | 8a3740b5d7f5799597d83beb345bb90a71b50424 | |
parent | 3759e032e636185210f8d33304a0b6da02899539 (diff) |
Pull lfs files during initialization
Google repo tools does not pull LFS files in repos that use them.
Do manual 'git lfs pull' for all repos that have lfs filters set.
Change-Id: I4d11f184bde4d73ef1d54dcc601faba838933fb3
Reviewed-by: Mikko Gronoff <mikko.gronoff@qt.io>
-rwxr-xr-x | b2qt-init-build-env | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/b2qt-init-build-env b/b2qt-init-build-env index d335f332..c56bf435 100755 --- a/b2qt-init-build-env +++ b/b2qt-init-build-env @@ -216,6 +216,12 @@ init() { if [ ! -e "setup-environment.sh" ]; then ln -s ${DIR}/scripts/setup-environment.sh setup-environment.sh fi + + # handle lfs repos which need manual lfs pull + LFS_REPOS=$(grep filter=lfs -l sources/*/.gitattributes 2>/dev/null || true) + for repo in ${LFS_REPOS}; do + ( cd $(dirname ${repo}); git lfs pull ) + done } get_repo |