Revert "Escape 2>&1 in the p4 detection"
This reverts commit 5cdf72acd17d3559e4b5a207dea2993ddd77f50d. `shellescape()`, which is what `sy#util#escape()` is a front-end to, is only supposed to escape a single element of an argv list. In this case, it's being used to escape multiple -- `p4 info 2>&1 >`. None of that should be escaped anyway, because they need to be interpreted by the shell.
This commit is contained in:
parent
f11fd14457
commit
c2fc1dc78a
@ -163,7 +163,7 @@ endfunction
|
|||||||
" Function: #get_diff_perforce {{{1
|
" Function: #get_diff_perforce {{{1
|
||||||
function! sy#repo#get_diff_perforce() abort
|
function! sy#repo#get_diff_perforce() abort
|
||||||
let diffoptions = has_key(g:signify_diffoptions, 'perforce') ? g:signify_diffoptions.perforce : ''
|
let diffoptions = has_key(g:signify_diffoptions, 'perforce') ? g:signify_diffoptions.perforce : ''
|
||||||
let diff = system(sy#util#escape('p4 info 2>&1 >') . sy#util#devnull() . ' && env P4DIFF=diff p4 diff -dU0 '. diffoptions .' '. sy#util#escape(b:sy.path))
|
let diff = system('p4 info 2>&1 >' . sy#util#devnull() . ' && env P4DIFF=diff p4 diff -dU0 '. diffoptions .' '. sy#util#escape(b:sy.path))
|
||||||
return v:shell_error ? [0, ''] : [1, diff]
|
return v:shell_error ? [0, ''] : [1, diff]
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user