mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Use the dir variable in fugitive#Head
This commit is contained in:
committed by
Tim Pope
parent
82a9af133c
commit
d4941aec93
@@ -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 ''
|
||||
|
||||
Reference in New Issue
Block a user