Under the hood
Bug fix: bare-git-repo path scrubbing now checks and acts on the same variable
What
In the logic that scrubs file paths for bare git repositories, a fallback directory check was comparing one variable but then acting on a different one, inconsistent with the surrounding code. This has been fixed so the check and the resulting action both use the same path variable.
Why
This fixes a mismatch that could have caused the wrong path to be checked or acted upon during path scrubbing.