Skip to content

Commit 20151ea

Browse files
authored
Merge pull request #21 from dimtion/master
Suppress error in git repo with no commits
2 parents 29e4866 + 30a2245 commit 20151ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

autoload/blamer.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ function! blamer#GetMessage(file, line_number, line_count) abort
117117
return ''
118118
elseif l:result =~? 'has only' && l:result =~? 'lines'
119119
return ''
120+
elseif l:result =~? 'no such ref'
121+
return ''
120122
endif
121123

122124
" Echo unkown errors in order to catch them

0 commit comments

Comments
 (0)