From 5c2e4b89be1fb5a22694601291d4f8a44cc64998 Mon Sep 17 00:00:00 2001 From: Andre Challier Date: Wed, 27 Mar 2024 19:38:10 +0100 Subject: [PATCH] dont ask me please... --- webhooks-git/programm-init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webhooks-git/programm-init.sh b/webhooks-git/programm-init.sh index 4a9424d..fdcb9fe 100644 --- a/webhooks-git/programm-init.sh +++ b/webhooks-git/programm-init.sh @@ -37,7 +37,10 @@ git ls-remote --heads "$PROGRAMM_REPOSITORY" | # Store branch names in an array mapfile -t branches + + for branch in "${branches[@]}"; do + echo "cloning $branch" git clone --depth 1 --branch "$branch" --single-branch "$PROGRAMM_REPOSITORY" "$BRANCHES_FOLDER"/"$branch" done \ No newline at end of file