From 100303dffd08df4a8afc8e0ab9dabd6b5a6abf03 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Oriol=20Tint=C3=B3?= <oriol.tinto@lmu.de>
Date: Mon, 3 Jul 2023 11:11:19 +0200
Subject: [PATCH] Adding project_branch selection patch to build-only.

---
 examples/example_utils.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples/example_utils.sh b/examples/example_utils.sh
index ef4aa47..328190e 100644
--- a/examples/example_utils.sh
+++ b/examples/example_utils.sh
@@ -68,7 +68,7 @@ function configure_and_install_autosubmit() {
 function setup_project() {
   local EXPID=$1
   PROJECT_ORIGIN="https://gitlab.physik.uni-muenchen.de/w2w/autoicon.git"
-  PROJECT_BRANCH="master"
+  : ${PROJECT_BRANCH:="master"}
 
   # If experiment directory doesn't exist, create it and set up the experiment
   if [ ! -e autosubmit/$EXPID/ ]; then
-- 
GitLab