From 9d431a0b0bf971bb7f402afbe6aafa7ba1d35d41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Thu, 4 Jul 2024 07:46:19 +0200 Subject: [PATCH] Badges: fetch all branches from origin before checking out the staging branch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- roles/openshift-apps/badges/templates/checkout-rules-repo.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/openshift-apps/badges/templates/checkout-rules-repo.sh b/roles/openshift-apps/badges/templates/checkout-rules-repo.sh index 9f547d5d3c..77bb8dfa5c 100644 --- a/roles/openshift-apps/badges/templates/checkout-rules-repo.sh +++ b/roles/openshift-apps/badges/templates/checkout-rules-repo.sh @@ -10,6 +10,7 @@ if [ ! -d "$DIR/.git" ]; then fi git config --global --add safe.directory $DIR +git fetch origin {% if env == 'staging' %} git -C $DIR checkout staging {% endif %}