build_common: no branches, main; ensure git dir

This commit is contained in:
pedro 2024-01-23 10:42:42 +01:00
parent c606fee335
commit f9393b5311
1 changed files with 6 additions and 2 deletions

View File

@ -16,10 +16,14 @@ common_start() {
detach='-d'
fi
# ensure uses pilot-pangea branch
# ensure uses pilot-pangea branch and it is up to date
(
cd ./IdHub
git checkout ${pilot}
if [ -d .git ]; then
#git checkout ${pilot}
git checkout main
git pull
fi
)
# some pilots might use idhub1 and/or idhub2