mirror of
https://github.com/tpope/vim-rhubarb.git
synced 2025-12-10 22:11:53 +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])
|
call extend(args, ['-H', 'Authorization: bearer ' . g:RHUBARB_TOKEN])
|
||||||
elseif s:credentials() !~# '^[^:]*:$'
|
elseif s:credentials() !~# '^[^:]*:$'
|
||||||
call extend(args, ['-u', s:credentials()])
|
call extend(args, ['-u', s:credentials()])
|
||||||
|
elseif has('win32') && filereadable(expand('~/.netrc'))
|
||||||
|
call extend(args, ['--netrc-file', expand('~/.netrc')])
|
||||||
else
|
else
|
||||||
call extend(args, ['--netrc'])
|
call extend(args, ['--netrc'])
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user