From aa88b88f890a8ebe09f5ed45a67b955e63387239 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Sun, 10 Dec 2017 19:03:34 +0100 Subject: travis-ci: allow unshallow to fail. --- dist/linux/travis-ci.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dist/linux') diff --git a/dist/linux/travis-ci.sh b/dist/linux/travis-ci.sh index 7dd6e7964..727d28b3b 100755 --- a/dist/linux/travis-ci.sh +++ b/dist/linux/travis-ci.sh @@ -14,9 +14,12 @@ printf "$ANSI_YELLOW[TRAVIS] Travis environment $ANSI_NOCOLOR\n" env | grep TRAVIS echo -en "travis_fold:end:travis_env\r" +# The command 'git describe' (used for version) needs the history. Get it. +# But the following command fails if the repository is complete. +git fetch --unshallow || true + # Build version.tmp and replace version.in with it (so that the version is # correctly set). -git fetch --unshallow make -f Makefile.in srcdir=. version.tmp cp version.tmp src/version.in -- cgit v1.2.3