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