Skip to content

Cover git update branch selection#310

Merged
codeforester merged 1 commit into
masterfrom
enhancement/301-20260530-test-git-update-branch
May 30, 2026
Merged

Cover git update branch selection#310
codeforester merged 1 commit into
masterfrom
enhancement/301-20260530-test-git-update-branch

Conversation

@codeforester
Copy link
Copy Markdown
Owner

Summary

  • Add direct BATS coverage for _git_expected_update_branch choosing origin/main, origin/master, and the graceful master fallback.
  • Add direct BATS coverage for _git_update_repo_finish log cleanup and RETURN trap preservation.
  • Teach _git_expected_update_branch to check remote origin/main and origin/master refs before falling back to local branches.

Validation

  • bats lib/bash/git/tests/lib_git.bats
  • ./bin/base-test
  • git diff --check

Fixes #301

@codeforester codeforester merged commit 6404c22 into master May 30, 2026
16 checks passed
@codeforester codeforester deleted the enhancement/301-20260530-test-git-update-branch branch May 30, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests for _git_expected_update_branch in lib_git.sh

1 participant