Filter out warning on :Gedit master@{2.years.ago}
This commit is contained in:
parent
469a73f3d9
commit
0ee0498b88
@ -897,7 +897,7 @@ function! fugitive#Find(object, ...) abort
|
||||
endif
|
||||
endif
|
||||
if commit !~# '^[0-9a-f]\{40,\}$'
|
||||
let commit = s:ChompDefault('', [dir, 'rev-parse', '--verify', commit, '--'])
|
||||
let commit = matchstr(s:ChompDefault('', [dir, 'rev-parse', '--verify', commit, '--']), '\<[0-9a-f]\{40,\}\>')
|
||||
endif
|
||||
if len(commit)
|
||||
let f = 'fugitive://' . dir . '//' . commit . file
|
||||
|
Loading…
x
Reference in New Issue
Block a user