From 8620dc1277a12dc533108f34b9b794a1a1520ea9 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 8 Jan 2016 12:44:03 -0500 Subject: [PATCH] curl: win32: Also try ~/.netrc Closes https://github.com/tpope/vim-rhubarb/issues/11 --- autoload/rhubarb.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 57a01ab..531f793 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -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