commit 540def7d2c1aa97d18b08bd7dc234442a7ab4757
parent 8f84167c30692555d3332565605e8a625aebc43c
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 5 Dec 2024 17:13:22 +0800
test(system_spec): check for .git dir before using git (#31458)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/test/functional/lua/system_spec.lua b/test/functional/lua/system_spec.lua
@@ -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()