diff --git a/src/git.ts b/src/git.ts index 8f2b9fc..a637130 100644 --- a/src/git.ts +++ b/src/git.ts @@ -43,7 +43,7 @@ export async function getGitStatus(cwd?: string): Promise { try { const { stdout: statusOut } = await execFileAsync( 'git', - ['status', '--porcelain'], + ['status', '--porcelain', '--no-optional-locks'], { cwd, timeout: 1000, encoding: 'utf8' } ); isDirty = statusOut.trim().length > 0;