aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-12-05 17:13:22 +0800
committerGitHub <noreply@github.com>2024-12-05 09:13:22 +0000
commit540def7d2c1aa97d18b08bd7dc234442a7ab4757 (patch)
treec8094c899a1f361c8bf6e8e8362939804570421c
parent8f84167c30692555d3332565605e8a625aebc43c (diff)
downloadrneovim-540def7d2c1aa97d18b08bd7dc234442a7ab4757.tar.gz
rneovim-540def7d2c1aa97d18b08bd7dc234442a7ab4757.tar.bz2
rneovim-540def7d2c1aa97d18b08bd7dc234442a7ab4757.zip
test(system_spec): check for .git dir before using git (#31458)
-rw-r--r--test/functional/lua/system_spec.lua1
1 files changed, 1 insertions, 0 deletions
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()