mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -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)
|
if empty(dir)
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
let file = FugitiveActualDir() . '/HEAD'
|
let file = FugitiveActualDir(dir) . '/HEAD'
|
||||||
let ftime = getftime(file)
|
let ftime = getftime(file)
|
||||||
if ftime == -1
|
if ftime == -1
|
||||||
return ''
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user