From 9d36dc2d74fd3129693c0d661bb689380646d171 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 8 Aug 2019 01:44:44 -0400 Subject: [PATCH] Check for built-ins with .exe extension on Windows --- autoload/fugitive.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 86e5896..c5043e0 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2111,6 +2111,7 @@ function! s:GitCommand(line1, line2, range, count, bang, mods, reg, arg, args) a endif let alias = get(s:Aliases(dir), args[0], '!') if alias !~# '^!\|[\"'']' && !filereadable(s:ExecPath() . '/git-' . args[0]) + \ && !(has('win32') && filereadable(s:ExecPath() . '/git-' . args[0] . '.exe')) call remove(args, 0) call extend(args, split(alias, '\s\+'), 'keep') endif