actually checkout the submodules specified in tags.env

This commit is contained in:
chandi
2023-01-10 17:19:35 +01:00
parent d8587b0e33
commit cef23f8236
2 changed files with 6 additions and 2 deletions

View File

@ -7,13 +7,18 @@
set -e
cd "$(dirname "$0")/.."
git submodule init
git submodule update
export $(cat tags.env | sed 's/#.*//g' | xargs)
function checkout {
path=$1
ref=$2
pushd $path
git fetch
git checkout $ref
echo ""
popd > /dev/null
}