From c76eeda8eb28f400b9d3c14f7150918f87780e46 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Dec 10 2020 10:20:59 +0000 Subject: 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 patch_name: 0027.patch present_in_specfile: true location_in_specfile: 27 squash_commits: true --- diff --git a/.travis.yml b/.travis.yml index f913db5..efb0df1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,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 || :