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')
endif
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)
if filereadable(actualdir . 'tags')
let s:tags_warning = 1