From 020a8aa736f3c9c176e31e2214619df32267f879 Mon Sep 17 00:00:00 2001 From: Ramesh Padmanabhaiah Date: Fri, 19 Jun 2026 19:22:45 -0700 Subject: [PATCH] Tighten git helper skip behavior --- lib/bash/git/README.md | 2 + lib/bash/git/lib_git.sh | 8 ++-- lib/bash/git/tests/lib_git.bats | 73 ++++++++++++++++++++++++++++++++- 3 files changed, 79 insertions(+), 4 deletions(-) diff --git a/lib/bash/git/README.md b/lib/bash/git/README.md index 22fefe4..d2dffcd 100644 --- a/lib/bash/git/README.md +++ b/lib/bash/git/README.md @@ -39,6 +39,8 @@ log_info "Current branch: $branch" - `git_get_current_branch` uses `git -C` so it does not change the caller's working directory or directory stack. Missing directories and non-Git directories return success with an empty result variable. +- `git_update_repo` changes into the target repository while it runs because + its submodule update sequence depends on repository-relative execution. - `check_script_up_to_date` treats missing git state, untracked scripts, or missing upstreams as skip conditions rather than hard failures. - `check_script_up_to_date