Skip to content

Commit 847a63e

Browse files
authored
fix: gh install trim remote origin (sst#2030)
1 parent ebd1b18 commit 847a63e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/opencode/src/cli/cmd/github.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ export const GithubInstallCommand = cmd({
185185
}
186186

187187
// Get repo info
188-
const info = await $`git remote get-url origin`.quiet().nothrow().text()
188+
const info = await $`git remote get-url origin`
189+
.quiet()
190+
.nothrow()
191+
.text()
192+
.then((text) => text.trim())
189193
// match https or git pattern
190194
// ie. https://github.com/sst/opencode.git
191195
// ie. https://github.com/sst/opencode

0 commit comments

Comments
 (0)