You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recommend configuring vim-gitgutter with the full path to your git executable. For example:
80
+
There is a potential risk on Windows due to `cmd.exe` prioritising the current folder over folders in `PATH`. If you have a file named `git.*` (i.e. with any extension in `PATHEXT`) in your current folder, it will be executed instead of git whenever the plugin calls git.
81
+
82
+
You can avoid this risk by configuring the full path to your git executable. For example:
81
83
82
84
```viml
85
+
" This path probably won't work
83
86
let g:gitgutter_git_executable = 'C:\Program Files\Git\bin\git.exe'
84
87
```
85
88
86
-
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.
89
+
Unfortunately I don't know the correct escaping for the path - if you do, please let me know!
0 commit comments