mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23: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
|
||||
let hash = self.git_chomp('rev-parse','--verify',a:rev)
|
||||
if hash =~ '^\x\{40\}$'
|
||||
return hash
|
||||
if hash =~ '\<\x\{40\}$'
|
||||
return matchstr(hash,'\<\x\{40\}$')
|
||||
endif
|
||||
call s:throw('rev-parse '.a:rev.': '.hash)
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user