Skip to content

Conversation

@cwlbraa
Copy link
Contributor

@cwlbraa cwlbraa commented Jun 23, 2025

we're pushing way too much to the fork in a way that's unnecessarily racy.

this stops cloning on initial environment create and instead does git init --bare.

it then exclusively pushes head:refs/heads/env_id and makes worktrees out of that. this keeps things much neater in the fork, provides a slight perf speedup on setup (possibly a big one in large repos), and dodges a notable race condition i had left a comment for myself to fix.

Signed-off-by: Connor Braa <connor@dagger.io>
@cwlbraa cwlbraa requested review from aluzzardi and tiborvass June 23, 2025 22:24
@cwlbraa cwlbraa merged commit a2973bb into main Jun 24, 2025
1 check passed
@aluzzardi aluzzardi deleted the push-less branch June 26, 2025 20:26
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.

3 participants