fab351
From d3f542cc9d0135a408be7ba995b8adad80bcd606 Mon Sep 17 00:00:00 2001
fab351
From: Frantisek Sumsal <frantisek@sumsal.cz>
fab351
Date: Wed, 21 Aug 2019 14:06:29 +0200
fab351
Subject: [PATCH] travis: fetch only tags
6b5521
fab351
The original `git pull` would try to pull & merge changes from the
fab351
master branch, which breaks CI runs on PRs based on non-master branches
6b5521
---
fab351
 .travis.yml | 2 +-
6b5521
 1 file changed, 1 insertion(+), 1 deletion(-)
6b5521
fab351
diff --git a/.travis.yml b/.travis.yml
fab351
index f913db57..efb0df1b 100644
fab351
--- a/.travis.yml
fab351
+++ b/.travis.yml
fab351
@@ -29,7 +29,7 @@ before_script:
fab351
     sudo modprobe kvm-intel nested=1 || :
fab351
     sudo modprobe kvm-amd nested=1 || :
fab351
     dmesg | tail || :
fab351
-  - git pull --depth=100
fab351
+  - git fetch --tags --unshallow
fab351
   - |
fab351
     git describe --abbrev=0 --tags || :
fab351
     git describe --tags || :
6b5521