fix(snapshot): use worktree root as cwd for git operations#29374
fix(snapshot): use worktree root as cwd for git operations#29374SpencerJung wants to merge 1 commit into
Conversation
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 2 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
|
The following comment was made by an LLM, it may be inaccurate: I found potential duplicate PRs related to this issue:
Both of these PRs appear to be addressing the exact same issue (#27688) related to git operations and worktree/subdirectory path resolution. |
|
This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window. Feel free to open a new pull request that follows our guidelines. |
Fixes #27688. Changes cwd from state.directory to state.worktree in ignore, drop, and stage functions so that git commands resolve paths correctly when opencode is opened from a subdirectory.