Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f1a7e02

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

File tree

2 files changed

+2
-2
lines changed
Filter options

2 files changed

+2
-2
lines changed

‎git/repo/fun.py

Copy file name to clipboardExpand all lines: git/repo/fun.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: git/util.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.