From f7f1413ed9b69eb80c8af07d38ebcc889ed64d96 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 2 Jun 2021 22:58:55 -0400 Subject: [PATCH] Disable PTY when using win32 Git in WSL References: https://github.com/tpope/vim-fugitive/issues/1751 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 516610f..58456b6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2936,7 +2936,7 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort call extend(env, {'COLUMNS': '' . &columns - 1}, 'keep') endif if s:RunJobs() && pager isnot# 1 - let state.pty = get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim'))) + let state.pty = get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')) && fugitive#GitVersion() !~# '\.windows\>') if !state.pty let args = s:AskPassArgs(dir) + args endif