Skip to content

Commit

Permalink
Update util.ts (#11270)
Browse files Browse the repository at this point in the history
  • Loading branch information
sriteja777 committed Sep 29, 2023
1 parent 539712a commit 9b487b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wdio-browserstack-service/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export async function getGitMetaData () {
var info: GitRepoInfo = gitRepoInfo()
if (!info.commonGitDir) return {}
const { remote } = await pGitconfig(info.commonGitDir)
const remotes = Object.keys(remote).map(remoteName => ({ name: remoteName, url: remote[remoteName]['url'] }))
const remotes = remote ? Object.keys(remote).map(remoteName => ({ name: remoteName, url: remote[remoteName]['url'] })) : []
return {
name: 'git',
sha: info.sha,
Expand Down

0 comments on commit 9b487b8

Please sign in to comment.