OpenCode doesnt respect git env vars #6241

Open
opened 2026-02-16 18:02:08 -05:00 by yindo · 0 comments
Owner

Originally created by @KNN-07 on GitHub (Jan 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When using some tools to set GIT_DIR and GIT_WORK_TREE environment variables. OpenCode doesnt respect that

Plugins

No response

OpenCode version

No response

Steps to reproduce

Symlink + use GIT_DIR and GIT_WORK_TREE

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @KNN-07 on GitHub (Jan 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When using some tools to set GIT_DIR and GIT_WORK_TREE environment variables. OpenCode doesnt respect that ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce Symlink + use GIT_DIR and GIT_WORK_TREE ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:02:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6241