opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Github Install couldn't find git repository

Open sachyyn opened this issue 1 month ago • 1 comments

Description

When trying to opencode github install, I get this error, even though the repo is initialized with git ┌ Install GitHub agent │ ■ Could not find git repository. Please run this command from a git repository.

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

sachyyn avatar Dec 16 '25 07:12 sachyyn

This issue might be a duplicate of existing issues. Please check:

  • #1361: "opencode github install" is failing with an error about needing to be run in a git repo while in a git repo

Feel free to ignore if this doesn't address your specific case.

github-actions[bot] avatar Dec 16 '25 07:12 github-actions[bot]

What output do u have for git remote get-url origin?

rekram1-node avatar Dec 16 '25 16:12 rekram1-node

should be fixed in next release by: https://github.com/sst/opencode/commit/3ac42e96326d93d50b681cbae3b92a2ad1841e8c

rekram1-node avatar Dec 16 '25 17:12 rekram1-node