From 540def7d2c1aa97d18b08bd7dc234442a7ab4757 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 5 Dec 2024 17:13:22 +0800 Subject: [PATCH] test(system_spec): check for .git dir before using git (#31458) --- test/functional/lua/system_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/lua/system_spec.lua b/test/functional/lua/system_spec.lua index 79a70c9c72..6c320376c9 100644 --- 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()