From d4941aec931bfcb4086b6c80d3773191bab58f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 9 Mar 2023 11:48:45 +0100 Subject: [PATCH] Use the dir variable in fugitive#Head --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 3af2dde..18c9dc1 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1027,7 +1027,7 @@ function! fugitive#Head(...) abort if empty(dir) return '' endif - let file = FugitiveActualDir() . '/HEAD' + let file = FugitiveActualDir(dir) . '/HEAD' let ftime = getftime(file) if ftime == -1 return ''