fix: [install] travis git unshallow

This commit is contained in:
Terrtia 2020-08-20 13:24:14 +02:00
parent b7d37e81d4
commit f71aef9f47
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -118,7 +118,10 @@ $AIL_HOME/doc/generate_modules_data_flow_graph.sh
pushd ${AIL_HOME} pushd ${AIL_HOME}
# shallow clone # shallow clone
git fetch --depth=500 --tags --prune git fetch --depth=500 --tags --prune
git fetch --unshallow if [ ! -z "$TRAVIS" ]; then
echo "Travis detected"
git fetch --unshallow
fi
git describe --abbrev=0 --tags | tr -d '\n' > ${AIL_HOME}/update/current_version git describe --abbrev=0 --tags | tr -d '\n' > ${AIL_HOME}/update/current_version
echo "AIL current version:" echo "AIL current version:"
git describe --abbrev=0 --tags git describe --abbrev=0 --tags