From 4dfd2a371e3ecbe2abd3d86ad10a820147c5982c Mon Sep 17 00:00:00 2001 From: Andrey Date: Sat, 1 Jun 2024 14:21:33 -0400 Subject: [PATCH] only:more logging --- misc/git_scripts/git_switch_submodule_branch.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/misc/git_scripts/git_switch_submodule_branch.sh b/misc/git_scripts/git_switch_submodule_branch.sh index 0b5cfc7ace..38b79fb2cd 100644 --- a/misc/git_scripts/git_switch_submodule_branch.sh +++ b/misc/git_scripts/git_switch_submodule_branch.sh @@ -8,10 +8,15 @@ if [[ -z "$SUBMODULE" || -z "$BRANCH" ]]; then exit -1 fi -echo "Running with SUBMODULE=[$SUBMODULE] and BRANCH=[$BRANCH]" +echo "Switching SUBMODULE=[$SUBMODULE] to BRANCH=[$BRANCH]" git submodule set-branch -b $BRANCH $SUBMODULE git submodule sync +git status + git add $SUBMODULE git add .gitmodules git commit -am "GHA says switch $SUBMODULE branch to $BRANCH" + +echo Done, plaese take of push! +git status