Skip to content

Commit f76e492

Browse files
committed
Ensure sdtout is a string
1 parent 7fe2024 commit f76e492

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/nvim-tree/git/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function M.get_toplevel(cwd)
1717
log.line("git", "%s", table.concat(cmd, " "))
1818

1919
local obj = vim.system(cmd):wait()
20-
local out = obj.stdout
20+
local out = obj.stdout or ""
2121

2222
log.raw("git", out)
2323
log.profile_end(profile)

0 commit comments

Comments
 (0)