Don't show tags warning when editing commit message

This commit is contained in:
Tim Pope
2019-09-28 11:14:30 -04:00
parent ab26e9fdb3
commit eedfd2a570

View File

@@ -5895,7 +5895,7 @@ function! fugitive#Init() abort
exe s:DoAutocmd('User FugitiveBoot') exe s:DoAutocmd('User FugitiveBoot')
endif endif
let dir = s:Dir() let dir = s:Dir()
if stridx(&tags, escape(dir, ', ')) == -1 && &tags !~# '\.git' && !exists('s:tags_warning') if &tags !~# '\.git' && @% !~# '\.git' && !exists('s:tags_warning')
let actualdir = fugitive#Find('.git/', dir) let actualdir = fugitive#Find('.git/', dir)
if filereadable(actualdir . 'tags') if filereadable(actualdir . 'tags')
let s:tags_warning = 1 let s:tags_warning = 1