Skip to content
Snippets Groups Projects
Commit 8e839656 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Wrong folder to git pull

parent f6066709
No related branches found
No related tags found
No related merge requests found
Pipeline #179487 failed
...@@ -68,7 +68,7 @@ spack:setup: ...@@ -68,7 +68,7 @@ spack:setup:
else else
git -C spack fetch git -C spack fetch
git -C spack checkout $SPACK_VERSION git -C spack checkout $SPACK_VERSION
git pull origin $SPACK_VERSION git -C spack pull
fi fi
- spack/bin/spack gpg trust $GPG_PRIVATE_KEY - spack/bin/spack gpg trust $GPG_PRIVATE_KEY
...@@ -78,18 +78,18 @@ spack:setup: ...@@ -78,18 +78,18 @@ spack:setup:
EXTERNAL_REPOS=$(jq -r '.spack.repos | keys[]' config.json) EXTERNAL_REPOS=$(jq -r '.spack.repos | keys[]' config.json)
echo "Repos: ${EXTERNAL_REPOS}"
for repo in ${EXTERNAL_REPOS} for repo in ${EXTERNAL_REPOS}
do do
repo_branch=$(jq -r ".spack.repos.\"${repo}\".branch" config.json) repo_branch=$(jq -r ".spack.repos.\"${repo}\".branch" config.json)
if [ ! -d /stack/extra_repos/${repo} ]; then if [ ! -d /stack/extra_repos/${repo} ]; then
echo "Cloning repo: ${repo}"
url_branch=$(jq -r ".spack.repos.\"${repo}\".url" config.json) url_branch=$(jq -r ".spack.repos.\"${repo}\".url" config.json)
git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo git clone -b ${repo_branch} ${url_branch} /stack/extra_repos/$repo
else else
echo "Update repo: ${repo}"
git -C /stack/extra_repos/$repo fetch git -C /stack/extra_repos/$repo fetch
git -C /stack/extra_repos/$repo checkout ${repo_branch} git -C /stack/extra_repos/$repo checkout ${repo_branch}
git pull origin ${repo_branch} git -C /stack/extra_repos/$repo pull
fi fi
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment