mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 16:54:22 +01:00
fix: gh install trim remote origin (#2030)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user