Commit 3e0d4391 authored by Julian Kornberger's avatar Julian Kornberger

Allow specifying a branch for a module

If a given commit is not included in the master branch, the update script fails.
parent 79d6ce2d
......@@ -7,12 +7,13 @@ set -e
for module in $GLUON_MODULES; do
var=$(echo $module | tr '[:lower:]/' '[:upper:]_')
eval repo=\${${var}_REPO}
eval branch=\${${var}_BRANCH}
eval commit=\${${var}_COMMIT}
mkdir -p "$1"/$module
cd "$1"/$module
git init
git checkout $commit 2>/dev/null || git fetch $repo
git checkout $commit 2>/dev/null || git fetch $repo $branch
git checkout -B base $commit
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment