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

Diff for: git/repo/fun.py

+1-1
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)

Diff for: git/util.py

+1-1
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)