From 187b3f05b6dbd81f32c017fc75776183aeabd04e Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Fri, 30 Jun 2023 10:51:33 +0200 Subject: [PATCH] fix: switch sites that are still on this branch to main --- lib/update-bridgehead.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/update-bridgehead.sh b/lib/update-bridgehead.sh index bce720d..50f7981 100755 --- a/lib/update-bridgehead.sh +++ b/lib/update-bridgehead.sh @@ -80,6 +80,10 @@ for DIR in /etc/bridgehead $(pwd); do log "INFO" "You can review all changes on the repository with $git_repository_url/compare?from=$old_git_hash&to=$new_git_hash" fi git_updated="true" + git -C "$DIR" checkout main + REPORT_BRANCH_NAME=$(git -C "$DIR" branch --show-current) + REPORT_STATUS_CHECK=$(git -C "$DIR" status --porcelain) + report_error 7 "MAINTENANCE: Switched Branch to main, you are now on branch $REPORT_BRANCH_NAME \n see status \n $REPORT_STATUS_CHECK" fi done