fix: broaden .gitignore pattern matching in removePiLoopFromGitignore #47
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-46/fix-gitignore-pattern-mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
removePiLoopFromGitignore()only matched.pi-loop/(with trailing slash), so lines with.pi-loop(no slash) or/.pi-loop(root-anchored) were not removed. This causedgit add -- . :(exclude).pi-loopto fail in the MR stage.Changes
PILOOP_GITIGNORE_PATTERNSwith three variants:.pi-loop,.pi-loop/,/.pi-loopisPiLoopGitignoreLine()helper for explicit allowlist matchingremovePiLoopFromGitignore()to use the new helper.pi-loop(no slash) and/.pi-loop(root-anchored) removal.pi-loop-extra/and.pi-loop-backupTesting
npm run lintcleannpm run buildcleanChecklist