Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit988d97b
committed
Fix typo in _get_exe_extensions PATHEXT fallback
PATHEXT lists file extensions with the ".". In the fallback givenin _get_exe_extensions, the other extensions had this, but ".COM"was listed without the ".". This fixes that.This is very minor because _get_exe_extensions is nonpublic and notcurrently used on native Windows, which is the platform where thePATHEXT fallback code would be used.Specifically, _get_exe_extensions is called only in py_where, whichwhile named with no leading underscore is nonpublic do not being(and never having been) listed in __all__. As its docstring states,it is an implementation detail of is_cygwin_git and not intendedfor any other use. More specifically, is_cygwin_git currentlyimmediately returns False on *native* Windows (even if the gitexecutable GitPython is using is a Cygwin git executable). Only onCygwin, or other systems that are not native Windows, does it tryto check the git executable (by calling its _is_cygwin_git helper,which uses py_where).1 parent83bed19 commit988d97b
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
| 342 | + | |
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
|
0 commit comments
Comments
(0)