Skip to content

Commit

Permalink
fix(): do not run fs_realpath on nil dir
Browse files Browse the repository at this point in the history
  • Loading branch information
mjlbach authored and lewis6991 committed Jan 15, 2022
1 parent 63e8a64 commit f4648dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/gitsigns/git.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion teal/gitsigns/git.tl
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ M.get_repo_info = function(path: string, cmd: string): string,string,string

local toplevel = results[1]
local gitdir = results[2]
if not has_abs_gd then
if gitdir and not has_abs_gd then
gitdir = uv.fs_realpath(gitdir)
end
local abbrev_head = process_abbrev_head(gitdir, results[3], path, cmd)
Expand Down

0 comments on commit f4648dc

Please sign in to comment.