Skip to content

Commit

Permalink
Fix bug with git remote creation (#2911)
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack authored Jul 3, 2024
1 parent be677d0 commit 1fa5790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/lib/git/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export default class Git {
const remotes = await this.exec(['remote', '-v'])
return remotes.split('\n')
.map(r => r.split('\t'))
.find(r => r[0] === name)![1]
.split(' ')[0]
.find(r => r[0] === name)?.[1]
?.split(' ')[0] ?? ''
}

url(app: string) {
Expand Down

0 comments on commit 1fa5790

Please sign in to comment.