fix: harden git status updates (#2533)
* fix for nil status error messages * simplify logic --------- Co-authored-by: Alexander Courtis <alex@courtis.org>
This commit is contained in:
@@ -14,6 +14,7 @@ local function get_dir_git_status(parent_ignored, status, absolute_path)
|
||||
return { file = "!!" }
|
||||
end
|
||||
|
||||
if status then
|
||||
return {
|
||||
file = status.files and status.files[absolute_path],
|
||||
dir = status.dirs and {
|
||||
@@ -21,6 +22,7 @@ local function get_dir_git_status(parent_ignored, status, absolute_path)
|
||||
indirect = status.dirs.indirect[absolute_path],
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
local function get_git_status(parent_ignored, status, absolute_path)
|
||||
|
||||
Reference in New Issue
Block a user