Skip to content

Make git dirty-path inspection cwd independent - #313

Merged
codeforester merged 1 commit into
mainfrom
bug/300-20260809-git-cwd
Aug 9, 2026
Merged

Make git dirty-path inspection cwd independent#313
codeforester merged 1 commit into
mainfrom
bug/300-20260809-git-cwd

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • thread the target repository into the internal dirty-path inspector
  • use git -C so the helper matches the cwd-independent Git module contract
  • add coverage that invokes it from outside the repository

Validation

  • bats lib/bash/git/tests/lib_git.bats
  • shellcheck --severity=warning lib/bash/git/lib_git.sh

Fixes #300

@codeforester
codeforester merged commit 4335e31 into main Aug 9, 2026
10 checks passed
@codeforester
codeforester deleted the bug/300-20260809-git-cwd branch August 9, 2026 18:48
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.

lib_git.sh: one internal helper relies on caller cwd instead of threading -C like the rest of the module

1 participant