opencode
opencode copied to clipboard
`opencode github install` fails for repositories cloned with SSH aliases
Description
When running opencode github install in a repository that was cloned using an SSH alias (e.g., git clone git@myalias:owner/repo), the command fails with:
Could not find git repository. Please run this command from a git repository.
Plugins
None
OpenCode version
1.1.25
Steps to reproduce
- Edit ~/.ssh/config and add the following:
Host myalias
HostName github.com
User git
- Clone a repository with
git clone git@myalias:owner/repo -
cdinto the cloned repository - Run
opencode github install
Screenshot and/or share link
Operating System
Ubuntu 24.04.3 LTS
Terminal
Gnome Terminal