mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-06 20:24:29 +08:00
curl: win32: Also try ~/.netrc
Closes https://github.com/tpope/vim-rhubarb/issues/11
This commit is contained in:
committed by
Tim Pope
parent
715789e554
commit
8620dc1277
@@ -116,6 +116,8 @@ function! s:curl_arguments(path, ...) abort
|
||||
call extend(args, ['-H', 'Authorization: bearer ' . g:RHUBARB_TOKEN])
|
||||
elseif s:credentials() !~# '^[^:]*:$'
|
||||
call extend(args, ['-u', s:credentials()])
|
||||
elseif has('win32') && filereadable(expand('~/.netrc'))
|
||||
call extend(args, ['--netrc-file', expand('~/.netrc')])
|
||||
else
|
||||
call extend(args, ['--netrc'])
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user