From 1fa57901cbaddacdeb4c96a9f211b45a07f90254 Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 3 Jul 2024 14:10:39 -0700 Subject: [PATCH] Fix bug with git remote creation (#2911) --- packages/cli/src/lib/git/git.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/src/lib/git/git.ts b/packages/cli/src/lib/git/git.ts index e79ad56c77..6b0878f8cb 100644 --- a/packages/cli/src/lib/git/git.ts +++ b/packages/cli/src/lib/git/git.ts @@ -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) {