diff options
| author | Aiden Cline <[email protected]> | 2025-08-17 22:45:22 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-17 22:45:22 -0500 |
| commit | 847a63e15af966c448912033467b6467b4fb1ffb (patch) | |
| tree | 89cffaf1fb9628709b9c4ec5381637aa6244ac7f | |
| parent | ebd1b18b70ff7446314223693a00ff12d6d5616c (diff) | |
| download | opencode-847a63e15af966c448912033467b6467b4fb1ffb.tar.gz opencode-847a63e15af966c448912033467b6467b4fb1ffb.zip | |
fix: gh install trim remote origin (#2030)
| -rw-r--r-- | packages/opencode/src/cli/cmd/github.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts index 7fcfc4ca8..03bc327cb 100644 --- a/packages/opencode/src/cli/cmd/github.ts +++ b/packages/opencode/src/cli/cmd/github.ts @@ -185,7 +185,11 @@ export const GithubInstallCommand = cmd({ } // Get repo info - const info = await $`git remote get-url origin`.quiet().nothrow().text() + const info = await $`git remote get-url origin` + .quiet() + .nothrow() + .text() + .then((text) => text.trim()) // match https or git pattern // ie. https://github.com/sst/opencode.git // ie. https://github.com/sst/opencode |
