From 84016ab1515afe0d2f2b63ac6e967ca36e76a7f1 Mon Sep 17 00:00:00 2001 From: Josh McKenzie Date: Mon, 11 May 2026 16:50:04 -0400 Subject: [PATCH] Quiet down the noisiness on empty array deref in post-checkout hook Patch by Josh McKenzie; reviewed by David Capwell for CASSANDRA-21364 Follow-up patch --- .build/git/git-hooks/post-checkout/100-update-submodules.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/git/git-hooks/post-checkout/100-update-submodules.sh b/.build/git/git-hooks/post-checkout/100-update-submodules.sh index fdd4618720..e867b0d279 100755 --- a/.build/git/git-hooks/post-checkout/100-update-submodules.sh +++ b/.build/git/git-hooks/post-checkout/100-update-submodules.sh @@ -36,13 +36,13 @@ _main() { return 0 fi - local extra_args=() + local extra_args="" if [[ -n "${BUILD_OFFLINE:-}" ]]; then echo "BUILD_OFFLINE is defined; using --no-fetch for submodule updates (local SHAs only)." echo "If your submodules are not already available locally, expect this to error out." - extra_args+=(--no-fetch) + extra_args="--no-fetch" fi - git submodule update --init --recursive "${extra_args[@]}" + git submodule update --init --recursive ${extra_args:-} } _main "$@"