Skip to content

Commit f4648dc

Browse files
mjlbachlewis6991
authored andcommitted
fix(): do not run fs_realpath on nil dir
1 parent 63e8a64 commit f4648dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/gitsigns/git.lua

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

teal/gitsigns/git.tl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ M.get_repo_info = function(path: string, cmd: string): string,string,string
240240

241241
local toplevel = results[1]
242242
local gitdir = results[2]
243-
if not has_abs_gd then
243+
if gitdir and not has_abs_gd then
244244
gitdir = uv.fs_realpath(gitdir)
245245
end
246246
local abbrev_head = process_abbrev_head(gitdir, results[3], path, cmd)

0 commit comments

Comments
 (0)