Increase the git clone depth.
authorDan Fandrich <dan@coneharvesters.com>
Thu, 17 Oct 2019 04:52:47 +0000 (06:52 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Thu, 17 Oct 2019 04:52:47 +0000 (06:52 +0200)
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

index 04f62cb..8d982d4 100644 (file)
@@ -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