From f87fba7b1edfe1ea664110825a6f2ac92a85960c Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 17 Oct 2019 06:52:47 +0200 Subject: [PATCH] Increase the git clone depth. If more commits are submitted to master between the time of triggering the first Cirrus build and the time the final build gets started, the desired commit is no longer at HEAD and the build will error out. [skip ci] --- .cirrus.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 04f62cb..8d982d4 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -5,7 +5,7 @@ task: name: FreeBSD freebsd_instance: matrix: - # There isn't a stable 13.0 image yet (2019-09) + # There isn't a stable 13.0 image yet (2019-10) image_family: freebsd-13-0-snap image_family: freebsd-12-0 # The stable 11.3 image causes "Agent is not responding" so use a snapshot @@ -13,7 +13,9 @@ task: image_family: freebsd-10-4 env: - CIRRUS_CLONE_DEPTH: 1 + # Set to 10 instead of 1 to avoid problems when new commits are submitted + # during a run. + CIRRUS_CLONE_DEPTH: 10 CFLAGS: -Wall -Wextra -O2 MAKE_FLAGS: -j 2 -- 2.7.4