Skip to content

Commit f1a7e02

Browse files
authored
Merge pull request #1890 from EliahKagan/pathext
Fix typo in _get_exe_extensions PATHEXT fallback
2 parents 5364053 + 988d97b commit f1a7e02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git/repo/fun.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def find_submodule_git_dir(d: PathLike) -> Optional[PathLike]:
112112
path = content[8:]
113113

114114
if Git.is_cygwin():
115-
# Cygwin creates submodules prefixed with `/cygdrive/...` suffixes.
115+
# Cygwin creates submodules prefixed with `/cygdrive/...`.
116116
# Cygwin git understands Cygwin paths much better than Windows ones.
117117
# Also the Cygwin tests are assuming Cygwin paths.
118118
path = cygpath(path)

git/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def _get_exe_extensions() -> Sequence[str]:
339339
if PATHEXT:
340340
return tuple(p.upper() for p in PATHEXT.split(os.pathsep))
341341
elif sys.platform == "win32":
342-
return (".BAT", "COM", ".EXE")
342+
return (".BAT", ".COM", ".EXE")
343343
else:
344344
return ()
345345

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy