Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork937
usesys.platform == "cygwin"
to figure out when we are using cygwin#2027
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -10,6 +10,8 @@ __pycache__/ | ||
# Transient editor files | ||
*.swp | ||
*~ | ||
\#*# | ||
.#*# | ||
# Editor configuration | ||
nbproject | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -32,7 +32,6 @@ | ||
from git.util import ( | ||
cygpath, | ||
expand_path, | ||
patch_env, | ||
remove_password_if_present, | ||
stream_copy, | ||
@@ -661,7 +660,7 @@ def refresh(cls, path: Union[None, PathLike] = None) -> bool: | ||
@classmethod | ||
def is_cygwin(cls) -> bool: | ||
return cls.GIT_PYTHON_GIT_EXECUTABLE is not None and sys.platform == "cygwin" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Consider adding an inline comment explaining that sys.platform being 'cygwin' reliably indicates a Cygwin environment per Python 3.7+, to improve clarity for future maintainers. Copilot uses AI. Check for mistakes. | ||
@overload | ||
@classmethod | ||
Uh oh!
There was an error while loading.Please reload this page.