mirror of
https://github.com/sst/opencode.git
synced 2025-08-22 05:54:08 +00:00
fix: gh install trim remote origin (#2030)
Some checks are pending
deploy / deploy (push) Waiting to run
Some checks are pending
deploy / deploy (push) Waiting to run
This commit is contained in:
parent
ebd1b18b70
commit
847a63e15a
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue