Document cmd.exe vulnerability where it can execute the wrong git.

See #508, #538.
This commit is contained in:
Andy Stewart
2019-08-10 06:16:13 +01:00
parent 6c320c71c5
commit de200ffdd4
2 changed files with 24 additions and 0 deletions

View File

@@ -79,6 +79,19 @@ Copy vim-gitgutter's subdirectories into your vim configuration directory:
See |add-global-plugin|.
WINDOWS *gitgutter-windows*
I recommend configuring vim-gitgutter with the full path to your git executable.
For example:
>
let g:gitgutter_git_executable = 'C:\Program Files\Git\bin\git.exe'
<
This is to avoid a problem which occurs if you have file named "git.*" (i.e.
with any extension in "PATHEXT") in your current folder. "cmd.exe" prioritises
the current folder over folders in 'PATH' and will try to execute your file
instead of the "git" binary.
===============================================================================
COMMANDS *gitgutter-commands*