Description
Description
When opening a directory within the nvimtree window using "o" . It still opens the directory and displays the content, however i do get the following annoying error message. I digged a little into it see neovim/neovim#19914 for more
/home/bob/Programming/Lab-Tool/.git : ENAMETOOLONG
Any idea why this is happening and how I might be able to resolve this?
Neovim version
NVIM v0.8.0-dev+399-g58323b1fe
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-11 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=malloc -Wsuggest-attribute=cold -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=always -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/runner/work/neovim/neovim/build/config -I/home/runner/work/neovim/neovim/src -I/home/runner/work/neovim/neovim/.deps/usr/include -I/usr/include -I/home/runner/work/neovim/neovim/build/src/nvim/auto -I/home/runner/work/neovim/neovim/build/include
Compiled by runner@fv-az40-824
Operating system and version
OS: Arch Linux x86_64 Host: Surface Book 3 124I:00037T Kernel: 5.18.16-arch1-1-surface Uptime: 2 days, 4 hours, 58 mins Packages: 1634 (pacman) Shell: fish 3.5.1 Resolution: 3240x2160 WM: awesome Theme: Adwaita [GTK2/3] Icons: Adwaita [GTK2/3] Terminal: alacritty
nvim-tree version
Minimal config
-- these line in git/utils.lua are causing the issue i am not shure how to resolve it. The problem is that system takes everything from standard out, but this isn't the desired behavior in this case. If somebody prints for example everytime a new terminal is opened the time this would fail hence a other function is needed see https://github.com/neovim/neovim/issues/19914 for more
local cmd = "git -C " .. vim.fn.shellescape(cwd) .. " rev-parse --show-toplevel"
local toplevel = vim.fn.system(cmd)
Steps to reproduce
1: When opening a directory within the nvimtree window using "o" .
2: It still opens the directory and displays the content, however i do get the following annoying error message.
Expected behavior
No error
Actual behavior
error