opencode icon indicating copy to clipboard operation
opencode copied to clipboard

`opencode github install` fails for repositories cloned with SSH aliases

Open ManuSanchez02 opened this issue 17 hours ago • 2 comments

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

  1. Edit ~/.ssh/config and add the following:
Host myalias
    HostName github.com
    User git
  1. Clone a repository with git clone git@myalias:owner/repo
  2. cd into the cloned repository
  3. Run opencode github install

Screenshot and/or share link

Image

Operating System

Ubuntu 24.04.3 LTS

Terminal

Gnome Terminal

ManuSanchez02 avatar Jan 19 '26 00:01 ManuSanchez02