Skip to content

Commit dadb879

Browse files
authored
fix(meta): github repo detection in local (#164)
1 parent 9b02f48 commit dadb879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ async function _getLocalGitRemote (dir: string) {
176176
try {
177177
// https://www.npmjs.com/package/parse-git-config#options
178178
const parseGitConfig = await import('parse-git-config' as string).then(
179-
m => m.promise
179+
m => m.promise || m.default || m
180180
) as (opts: { path: string }) => Promise<Record<string, Record<string, string>>>
181181
const gitDir = await findNearestFile('.git/config', { startingFrom: dir })
182182
const parsed = await parseGitConfig({ path: gitDir })

0 commit comments

Comments
 (0)