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