Skip to content

fix(git): include tracked *.lock files in snapshots#199

Merged
joshfriend merged 1 commit intomainfrom
fix-snapshot-lockfile-excludes
Mar 18, 2026
Merged

fix(git): include tracked *.lock files in snapshots#199
joshfriend merged 1 commit intomainfrom
fix-snapshot-lockfile-excludes

Conversation

@joshfriend
Copy link
Copy Markdown
Contributor

This updates non-bare git snapshot creation and streaming to exclude only .git lockfiles instead of excluding every *.lock path. Tracked lock files such as package-lock.json, yarn.lock, and Gemfile.lock are now preserved in snapshot archives, and a regression test was added to verify tracked lock files are included while .git/index.lock remains excluded.

@joshfriend joshfriend requested a review from a team as a code owner March 18, 2026 14:33
@joshfriend joshfriend requested review from alecthomas and removed request for a team March 18, 2026 14:33
@joshfriend joshfriend changed the title Include tracked *.lock files in git snapshots fix(git): include tracked *.lock files in snapshots Mar 18, 2026
@joshfriend joshfriend requested a review from worstell March 18, 2026 14:34
@joshfriend joshfriend force-pushed the fix-snapshot-lockfile-excludes branch from f3f299d to 7d3231a Compare March 18, 2026 14:34
@joshfriend joshfriend force-pushed the fix-snapshot-lockfile-excludes branch from 7d3231a to 3e7cb81 Compare March 18, 2026 15:58
@joshfriend joshfriend merged commit 75c122b into main Mar 18, 2026
7 checks passed
@joshfriend joshfriend deleted the fix-snapshot-lockfile-excludes branch March 18, 2026 16:45
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.

2 participants