From 6d42c7df44aa20252e5dac747c3ac9fa7450b21b Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 8 Jun 2019 02:42:32 -0400 Subject: [PATCH] Fix fugitive#isdirectory() with trailing slash --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 204cfee..bbe5064 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -942,7 +942,7 @@ function! s:PathInfo(url) abort let path = substitute(file[1:-1], '/*$', '', '') let [tree, ftime] = s:TreeInfo(dir, commit) let entry = empty(path) ? [ftime, '040000', 'tree', '', -1] : get(tree, path, []) - if empty(entry) || file =~# '/$' && entry[1] !=# 'tree' + if empty(entry) || file =~# '/$' && entry[2] !=# 'tree' return [-1, '000000', '', '', -1] else return entry