From: Frantisek Sumsal Date: Wed, 21 Aug 2019 12:06:29 +0000 (+0200) Subject: travis: fetch only tags X-Git-Tag: 050~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b2258ea0d05b1d3a8ff2dcc3614894c9b604a6e;p=thirdparty%2Fdracut.git travis: fetch only tags The original `git pull` would try to pull & merge changes from the master branch, which breaks CI runs on PRs based on non-master branches --- diff --git a/.travis.yml b/.travis.yml index 90ea8e906..37002e9ac 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ before_script: sudo modprobe kvm-intel nested=1 || : sudo modprobe kvm-amd nested=1 || : dmesg | tail || : - - git pull --depth=100 + - git fetch --tags --unshallow - | git describe --abbrev=0 --tags || : git describe --tags || :