From 847a63e15af966c448912033467b6467b4fb1ffb Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Sun, 17 Aug 2025 22:45:22 -0500 Subject: [PATCH] fix: gh install trim remote origin (#2030) --- packages/opencode/src/cli/cmd/github.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/opencode/src/cli/cmd/github.ts b/packages/opencode/src/cli/cmd/github.ts index 7fcfc4ca..03bc327c 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