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