Commit f4954e7f authored by Thanassis Tsiodras's avatar Thanassis Tsiodras
Browse files

Don't re-checkout when doing Gitlab CI buids.

parent 08004ce6
Pipeline #2857 failed with stage
in 21 minutes and 35 seconds
......@@ -17,18 +17,20 @@ function banner()
echo -e "${COLOROFF}"
}
git pull || exit 1
if [ -z "$1" -o "$1" == "--stable" ] ; then
git submodule init || exit 1
git submodule update || exit 1
else
git submodule | awk '{print $2}' | while read FOLDER ; do
cd "$FOLDER" || exit 1
git fetch || exit 1
git checkout master || exit 1
git pull || exit 1
cd ..
done
if [ -z "GITLAB_CI" ] ; then
git pull || exit 1
if [ -z "$1" -o "$1" == "--stable" ] ; then
git submodule init || exit 1
git submodule update || exit 1
else
git submodule | awk '{print $2}' | while read FOLDER ; do
cd "$FOLDER" || exit 1
git fetch || exit 1
git checkout master || exit 1
git pull || exit 1
cd ..
done
fi
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DISABLE_TASTE_BANNER=1
......
Supports Markdown
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