You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] #1092 seam: upgrade drops prior hand-added root ignores instead of migrating them into the empty-seeded .gitignore.project #1111
Follow-up from 1.2.1-rc1 verification (not fixed in the 1.2.1 train). Relates to #1092 (durable committed home for repo-root ignores via .gitignore.project).
Problem
The #1092 fix gives consumers a durable, preserved .gitignore.project whose contents init-workspace.sh appends to the regenerated root .gitignore. But on the upgrade that introduces.gitignore.project, it is seeded empty. Any root ignores a consumer had previously hand-added directly to the managed root .gitignore (which the upgrade regenerates from scratch) are silently dropped — they are not migrated into the newly-seeded .gitignore.project.
The flake-hooks store-symlink case for .pre-commit-config.yaml is handled separately (auto-seeded conditionally, #1092 Fixed). This is about the general class: .DS_Store, editor/OS cruft, project-specific paths, etc. that a consumer added by hand.
Suggested fix
Either:
Auto-migrate previously-present, consumer-added lines from the old root .gitignore into .gitignore.project on the upgrade that introduces it; or
At minimum, print an upgrade-output note listing the root-.gitignore lines being dropped, so the consumer can move them into .gitignore.project themselves.
Fixed by #1129 (merged into dev). Consumer hand-added root .gitignore entries are now auto-migrated append-only into .gitignore.project before the render — deduplicated against managed sources and existing entries, idempotent across upgrades, with an upgrade note listing what moved. Ships with the next patch release.
Activity
fix(init-workspace): preserve tag-scheme keys across upgrades (#1123)
fix(init-workspace): preserve dangling store pre-commit symlink (#1124)
test(init-workspace): cover root .gitignore migration into .gitignore…
fix(init-workspace): migrate hand-added root gitignore lines into .gi…
c-vigo commentedon Jul 15, 2026
Fixed by #1129 (merged into
dev). Consumer hand-added root.gitignoreentries are now auto-migrated append-only into.gitignore.projectbefore the render — deduplicated against managed sources and existing entries, idempotent across upgrades, with an upgrade note listing what moved. Ships with the next patch release.fix(init-workspace): migrate hand-added root gitignore lines into .gi…
chore: release 1.3.0 (#265)
chore: release 1.3.0 (#1138)
fix(workspace): never migrate scaffold-committed or template gitignor…
chore: release 1.3.1 (#270)
chore: release 1.3.1 (#1164)