Treat v:shell_error >= 2 as "not version controlled" for AccuRev
When a user isn't logged in, "accurev diff" will return an exit code of 52. Since the only well defined values are 0 or 1, treat anything else as unversioned.
This commit is contained in:
parent
6b4abcd754
commit
37376d9970
@ -76,7 +76,7 @@ endfunction
|
||||
" Function: #get_diff_accurev {{{1
|
||||
function! sy#repo#get_diff_accurev() abort
|
||||
let diff = s:run(g:signify_vcs_cmds.accurev, b:sy_info.file, 1)
|
||||
return (v:shell_error == 2) ? [0, ''] : [1, diff]
|
||||
return (v:shell_error >= 2) ? [0, ''] : [1, diff]
|
||||
endfunction
|
||||
|
||||
" Function: #get_diff_perforce {{{1
|
||||
|
Loading…
Reference in New Issue
Block a user