From 5a6e0beb531b92b68d20663bb10f82f1c8d0595a Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Tue, 21 Apr 2020 13:55:02 -0400 Subject: [PATCH] Don't clobber cockpit bots directory --- Makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 9c85354..b0346f9 100644 --- a/Makefile +++ b/Makefile @@ -136,11 +136,7 @@ check: $(NODE_MODULES_TEST) $(VM_IMAGE) test/common # checkout Cockpit's bots for standard test VM images and API to launch them # must be from master, as only that has current and existing images; but testvm.py API is stable bots: - if [ ! -d bots ]; then \ - git clone --depth=1 https://github.com/cockpit-project/bots.git; \ - else \ - cd bots && git fetch && git reset --hard origin/master; \ - fi + [ -d bots ] || git clone --depth=1 https://github.com/cockpit-project/bots.git # checkout Cockpit's test API; this has no API stability guarantee, so check out a stable tag # when you start a new project, use the latest relese, and update it from time to time