mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05:00
Ignore rev-parse warnings
This commit is contained in:
@@ -254,8 +254,8 @@ endfunction
|
|||||||
|
|
||||||
function! s:repo_rev_parse(rev) dict abort
|
function! s:repo_rev_parse(rev) dict abort
|
||||||
let hash = self.git_chomp('rev-parse','--verify',a:rev)
|
let hash = self.git_chomp('rev-parse','--verify',a:rev)
|
||||||
if hash =~ '^\x\{40\}$'
|
if hash =~ '\<\x\{40\}$'
|
||||||
return hash
|
return matchstr(hash,'\<\x\{40\}$')
|
||||||
endif
|
endif
|
||||||
call s:throw('rev-parse '.a:rev.': '.hash)
|
call s:throw('rev-parse '.a:rev.': '.hash)
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user