Commit 5c7b9e2
committed
fix(flow): start fullrepo tree from empty tree, not HEAD
Previously build_fullrepo_tree() started from HEAD's tree, then removed
the agent paths that pass is_agent_path(). Any main-tracked file
that does NOT pass is_agent_path() (e.g. .gemini/ SYSTEM config that
is now tracked on main after the AGENT_ONLY removal) would leak
straight through into the published fullrepo, duplicating content
that already lives on the adapter's main branch.
Start the temp index from the well-known empty tree
(4b825dc) so the resulting fullrepo
commit contains exactly the current agent-only paths from the
worktree and nothing else.
Refs: rldyour-antigravity-cli .gemini/ SYSTEM config tracked on main1 parent 47e0002 commit 5c7b9e2
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
| |||
0 commit comments