From 0101f49718033b74bec20a270688e23fd5a12f9c Mon Sep 17 00:00:00 2001 From: Michael van der Kamp Date: Sat, 23 Oct 2021 20:50:39 -0600 Subject: [PATCH] Let PathInfo decide how to fill the error entry --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cf9de64..0d0635f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2073,7 +2073,7 @@ function! s:IndexInfo(dir, commit_stage, path) abort let result = fugitive#Execute(['--literal-pathspecs', 'ls-files', '--stage', '--', a:path]) let line = result.stdout[0] if result.exit_status || empty(line) - return [-1, '000000', '', '', -1] + return [] endif let newftime = getftime(fugitive#Find('.git/index', a:dir)) let [info, filename] = split(line, "\t")