Skip to content
Snippets Groups Projects
Commit 0fed70e6 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

autoload/magit/git.vim: do not check shell_error for git diff /dev/null

parent 2e2bf2ea
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ function! magit#git#git_diff(filename, status, mode)
\ " --no-color -p -- " . dev_null . " "
\ . a:filename
silent let diff_list=magit#utils#systemlist(git_cmd)
if ( v:shell_error != 0 )
if ( dev_null != "" && v:shell_error != 0 )
echohl WarningMsg
echom "Git error: " . string(diff_list)
echom "Git cmd: " . git_cmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment