Skip to content

Keep repo file operations inside the checkout - #4487

Merged
mathjazz merged 3 commits into
mozilla:mainfrom
mathjazz:sync-symlink-handling
Sep 3, 2026
Merged

Keep repo file operations inside the checkout#4487
mathjazz merged 3 commits into
mozilla:mainfrom
mathjazz:sync-symlink-handling

Conversation

@mathjazz

@mathjazz mathjazz commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

A repository can commit a symlink pointing anywhere on the filesystem. Sync followed those links, so a repo could make sync read a file from outside the checkout into the database, or write a translation over one.

As of this patch, paths are only acted on if inside the checkout.

A repository can commit a symlink pointing anywhere on the filesystem.
Sync followed those links, so a repo could make sync read a file from
outside the checkout into the database, or write a translation over one.
@mathjazz
mathjazz requested a review from eemeli September 3, 2026 12:05
Comment thread pontoon/sync/core/checkout.py Outdated
Co-authored-by: Eemeli Aro <eemeli@gmail.com>
@mathjazz
mathjazz requested a review from eemeli September 3, 2026 12:29
@mathjazz
mathjazz merged commit 5083f3b into mozilla:main Sep 3, 2026
7 checks passed
@mathjazz
mathjazz deleted the sync-symlink-handling branch September 3, 2026 16:06
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