test(system_spec): check for .git dir before using git (#31458)

This commit is contained in:
zeertzjq 2024-12-05 17:13:22 +08:00 committed by GitHub
parent 8f84167c30
commit 540def7d2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,6 +122,7 @@ describe('vim.system', function()
it('always captures all content of stdout/stderr #30846', function()
t.skip(n.fn.executable('git') == 0, 'missing "git" command')
t.skip(n.fn.isdirectory('.git') == 0, 'missing ".git" directory')
eq(
0,
exec_lua(function()