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

View File

@ -17,8 +17,7 @@ else
echo "" echo ""
echo "# pull newest git submodules" echo "# pull newest git submodules"
git submodule init ./scripts/checkout-submodules
git submodule update
echo "" echo ""
echo "# recreate docker-compose.yml" echo "# recreate docker-compose.yml"