René's URL Explorer Experiment


Title: use `sys.platform == "cygwin"` to figure out when we are using cygwin by gcmarx · Pull Request #2027 · gitpython-developers/GitPython · GitHub

Open Graph Title: use `sys.platform == "cygwin"` to figure out when we are using cygwin by gcmarx · Pull Request #2027 · gitpython-developers/GitPython

X Title: use `sys.platform == "cygwin"` to figure out when we are using cygwin by gcmarx · Pull Request #2027 · gitpython-developers/GitPython

Description: The current logic for detecting cygwin is: if sys.platform == "win32", then it's not cygwin if the passed-in git executable is None, then it's not cygwin git finally, is there a uname executable i...

Open Graph Description: The current logic for detecting cygwin is: if sys.platform == "win32", then it's not cygwin if the passed-in git executable is None, then it's not cygwin git finally, is there a ...

X Description: The current logic for detecting cygwin is: if sys.platform == "win32", then it's not cygwin if the passed-in git executable is None, then it's not cygwin git fina...

Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/2027

X: @github

direct link

Domain: togithub.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:a9f98962-c853-c311-c18b-e7e7f773dd7b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA628:173D3D:4B7BDF:68F9BB:69695F52
html-safe-nonce1cc915512790213f9025a1fda2e5a9366c9bf3e3a21b89004b9ae760335b9452
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjI4OjE3M0QzRDo0QjdCREY6NjhGOUJCOjY5Njk1RjUyIiwidmlzaXRvcl9pZCI6IjE4NTQ0MTYwNzA5OTQ2NDg5MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac20e2cc9bb945514b1082ce3bd2f82d105e02ce7759b08a9bd3b62055d5bd5497
hovercard-subject-tagpull_request:2537651784
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/gitpython-developers/GitPython/2027/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/6bc45c56c5176726769838e9c80e4e087d5cc8a382133b134c660ab258d8830d/gitpython-developers/GitPython/pull/2027
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6bc45c56c5176726769838e9c80e4e087d5cc8a382133b134c660ab258d8830d/gitpython-developers/GitPython/pull/2027
og:image:altThe current logic for detecting cygwin is: if sys.platform == "win32", then it's not cygwin if the passed-in git executable is None, then it's not cygwin git finally, is there a ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegcmarx
hostnamegithub.com
expected-hostnamegithub.com
None48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release669463fcc54773a88c1f5a44eef6b99a5504b9c7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://togithub.com/gitpython-developers/GitPython/pull/2027#start-of-content
https://togithub.com/
Sign in https://togithub.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2027
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://togithub.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2027
Sign up https://togithub.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://togithub.com/gitpython-developers/GitPython/pull/2027
Reloadhttps://togithub.com/gitpython-developers/GitPython/pull/2027
Reloadhttps://togithub.com/gitpython-developers/GitPython/pull/2027
gitpython-developers https://togithub.com/gitpython-developers
GitPythonhttps://togithub.com/gitpython-developers/GitPython
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
Notifications https://togithub.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 964 https://togithub.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5k https://togithub.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://togithub.com/gitpython-developers/GitPython
Issues 169 https://togithub.com/gitpython-developers/GitPython/issues
Pull requests 8 https://togithub.com/gitpython-developers/GitPython/pulls
Discussions https://togithub.com/gitpython-developers/GitPython/discussions
Actions https://togithub.com/gitpython-developers/GitPython/actions
Security Uh oh! There was an error while loading. Please reload this page. https://togithub.com/gitpython-developers/GitPython/security
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
Insights https://togithub.com/gitpython-developers/GitPython/pulse
Code https://togithub.com/gitpython-developers/GitPython
Issues https://togithub.com/gitpython-developers/GitPython/issues
Pull requests https://togithub.com/gitpython-developers/GitPython/pulls
Discussions https://togithub.com/gitpython-developers/GitPython/discussions
Actions https://togithub.com/gitpython-developers/GitPython/actions
Security https://togithub.com/gitpython-developers/GitPython/security
Insights https://togithub.com/gitpython-developers/GitPython/pulse
Sign up for GitHub https://togithub.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://togithub.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://togithub.com/gitpython-developers/GitPython/pull/2027#issue-comment-box
gcmarxhttps://togithub.com/gcmarx
gitpython-developers:mainhttps://togithub.com/gitpython-developers/GitPython/tree/main
gcmarx:sys-platform-detect-cygwinhttps://togithub.com/gcmarx/GitPython/tree/sys-platform-detect-cygwin
use sys.platform == "cygwin" to figure out when we are using cygwin https://togithub.com/gitpython-developers/GitPython/pull/2027#top
gcmarxhttps://togithub.com/gcmarx
gitpython-developers:mainhttps://togithub.com/gitpython-developers/GitPython/tree/main
gcmarx:sys-platform-detect-cygwinhttps://togithub.com/gcmarx/GitPython/tree/sys-platform-detect-cygwin
Conversation 7 https://togithub.com/gitpython-developers/GitPython/pull/2027
Commits 2 https://togithub.com/gitpython-developers/GitPython/pull/2027/commits
Checks 25 https://togithub.com/gitpython-developers/GitPython/pull/2027/checks
Files changed https://togithub.com/gitpython-developers/GitPython/pull/2027/files
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://github.co/hiddenchars
https://togithub.com/gitpython-developers/GitPython/pull/{{ revealButtonHref }}
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 22, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#issue-3083879070
python 3.7 docs for sys.platformhttps://docs.python.org/3.7/library/sys.html#sys.platform
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
completely remove 'is_cygwin_git' and use sys.platform insteadhttps://togithub.com/gitpython-developers/GitPython/pull/2027/commits/753e2da34721f72163d08d24308542209f4c70aa
753e2dahttps://togithub.com/gitpython-developers/GitPython/pull/2027/commits/753e2da34721f72163d08d24308542209f4c70aa
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 22, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#issuecomment-2901791449
#2026https://github.com/gitpython-developers/GitPython/pull/2026
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 22, 2025 https://togithub.com/gitpython-developers/GitPython/pull/2027#ref-pullrequest-3083367199
correctly handle uname-cmd that doesn't point to an executable file #2026 https://togithub.com/gitpython-developers/GitPython/pull/2026
https://togithub.com/Byron
Byronhttps://togithub.com/Byron
EliahKaganhttps://togithub.com/EliahKagan
Copilothttps://togithub.com/apps/copilot-pull-request-reviewer
EliahKaganhttps://togithub.com/EliahKagan
May 23, 2025 06:51https://togithub.com/gitpython-developers/GitPython/pull/2027#event-17784411636
https://togithub.com/apps/copilot-pull-request-reviewer
Copilothttps://togithub.com/apps/copilot-pull-request-reviewer
May 23, 2025 https://togithub.com/gitpython-developers/GitPython/pull/2027#pullrequestreview-2863384594
View reviewed changes https://togithub.com/gitpython-developers/GitPython/pull/2027/files/753e2da34721f72163d08d24308542209f4c70aa
Copilothttps://togithub.com/apps/copilot-pull-request-reviewer
https://togithub.com/gitpython-developers/GitPython/pull/2027#pullrequestreview-2863384594
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
git/cmd.pyhttps://togithub.com/gitpython-developers/GitPython/pull/2027/files/753e2da34721f72163d08d24308542209f4c70aa#diff-35a18a749eb4d6efad45e56e78a9554926be5526e2ba2159b44311e718450e88
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 23, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#event-17788222337
https://togithub.com/gcmarx
add self to AUTHORS, add Emacs tempfiles to .gitignorehttps://togithub.com/gitpython-developers/GitPython/pull/2027/commits/cc3d5d87f9a052eeaa11bbf36dd38119b2025b7c
cc3d5d8https://togithub.com/gitpython-developers/GitPython/pull/2027/commits/cc3d5d87f9a052eeaa11bbf36dd38119b2025b7c
https://togithub.com/Byron
Byronhttps://togithub.com/Byron
EliahKaganhttps://togithub.com/EliahKagan
May 26, 2025 03:12https://togithub.com/gitpython-developers/GitPython/pull/2027#event-17807105498
https://togithub.com/EliahKagan
EliahKaganhttps://togithub.com/EliahKagan
May 26, 2025 https://togithub.com/gitpython-developers/GitPython/pull/2027#pullrequestreview-2867149142
View reviewed changes https://togithub.com/gitpython-developers/GitPython/pull/2027/files/cc3d5d87f9a052eeaa11bbf36dd38119b2025b7c
EliahKaganhttps://togithub.com/EliahKagan
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gitpython-developers/GitPython/pull/2027#pullrequestreview-2867149142
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2026https://github.com/gitpython-developers/GitPython/pull/2026
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 26, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#issuecomment-2909897621
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
gcmarxhttps://togithub.com/gcmarx
May 27, 2025 https://togithub.com/gitpython-developers/GitPython/pull/2027#ref-pullrequest-3091387705
safe mode to disable executing any external programs except git #2029 https://togithub.com/gitpython-developers/GitPython/pull/2029
https://togithub.com/EliahKagan
EliahKaganhttps://togithub.com/EliahKagan
May 28, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#issuecomment-2914699037
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
#2026https://github.com/gitpython-developers/GitPython/pull/2026
cffa264https://github.com/gitpython-developers/GitPython/commit/cffa264bdc1dd09a13a85cc27417b85628273e14
#1979https://github.com/gitpython-developers/GitPython/issues/1979
#2026https://github.com/gitpython-developers/GitPython/pull/2026
widely usedhttps://pypistats.org/packages/gitpython
#1646https://github.com/gitpython-developers/GitPython/issues/1646
#1979https://github.com/gitpython-developers/GitPython/issues/1979
3f5a942https://github.com/gitpython-developers/GitPython/commit/3f5a942be8293bb8c663631756885f877afc22e7
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#1979https://github.com/gitpython-developers/GitPython/issues/1979
top-level refresh functionhttps://github.com/gitpython-developers/GitPython/blob/bf51609512619e78292c9d6496a0e076e6f46051/git/__init__.py#L263-L292
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2027 (review)https://github.com/gitpython-developers/GitPython/pull/2027#pullrequestreview-2867149142
Support Cygwin's Git on Windows #533https://github.com/gitpython-developers/GitPython/pull/533
e6e23edhttps://github.com/gitpython-developers/GitPython/commit/e6e23ed24b35c6154b4ee0da5ae51cd5688e5e67
GitPython/git/util.pyhttps://github.com/gitpython-developers/GitPython/blob/e6e23ed24b35c6154b4ee0da5ae51cd5688e5e67/git/util.py#L287-L288
e6e23edhttps://togithub.com/gitpython-developers/GitPython/commit/e6e23ed24b35c6154b4ee0da5ae51cd5688e5e67
GitPython/git/compat.pyhttps://github.com/gitpython-developers/GitPython/blob/e6e23ed24b35c6154b4ee0da5ae51cd5688e5e67/git/compat.py#L28
e6e23edhttps://togithub.com/gitpython-developers/GitPython/commit/e6e23ed24b35c6154b4ee0da5ae51cd5688e5e67
GitPython/.appveyor.ymlhttps://github.com/gitpython-developers/GitPython/blob/cc77e6b2862733a211c55cf29cc7a83c36c27919/.appveyor.yml#L2-L38
cc77e6bhttps://togithub.com/gitpython-developers/GitPython/commit/cc77e6b2862733a211c55cf29cc7a83c36c27919
Re-enable Cygwin CI and get most tests passing #1455https://github.com/gitpython-developers/GitPython/pull/1455
96fae83https://github.com/gitpython-developers/GitPython/commit/96fae83e36c67f90d6c3da64a936a06a0966e981
#533https://github.com/gitpython-developers/GitPython/pull/533
#1455https://github.com/gitpython-developers/GitPython/pull/1455
Git for Windowshttps://gitforwindows.org/
#1455https://github.com/gitpython-developers/GitPython/pull/1455
#2026https://github.com/gitpython-developers/GitPython/pull/2026
cffa264https://github.com/gitpython-developers/GitPython/commit/cffa264bdc1dd09a13a85cc27417b85628273e14
#1455https://github.com/gitpython-developers/GitPython/pull/1455
#2026https://github.com/gitpython-developers/GitPython/pull/2026
cffa264https://github.com/gitpython-developers/GitPython/commit/cffa264bdc1dd09a13a85cc27417b85628273e14
the TODO commenthttps://github.com/gitpython-developers/GitPython/blob/bf51609512619e78292c9d6496a0e076e6f46051/git/util.py#L487
42e10c0https://github.com/gitpython-developers/GitPython/commit/42e10c07436cd6186ffff1861c466838366fe9f0
#1859https://github.com/gitpython-developers/GitPython/pull/1859
environmenthttps://www.msys2.org/docs/environments/
this test runhttps://gist.github.com/EliahKagan/20042f202d94e3af5733082abcac2182
#1988 (comment)https://github.com/gitpython-developers/GitPython/pull/1988#issuecomment-2571408568
the strings approachhttps://github.com/gcmarx/GitPython/blob/0df08181f1012f0e591f998dcc57fd594e754d98/git/util.py#L467-L468
#2026https://github.com/gitpython-developers/GitPython/pull/2026
cffa264https://github.com/gitpython-developers/GitPython/commit/cffa264bdc1dd09a13a85cc27417b85628273e14
cffa264https://github.com/gitpython-developers/GitPython/commit/cffa264bdc1dd09a13a85cc27417b85628273e14
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/EliahKagan
EliahKaganhttps://togithub.com/EliahKagan
May 30, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#issuecomment-2922770876
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2026https://github.com/gitpython-developers/GitPython/pull/2026
#2026 (comment)https://github.com/gitpython-developers/GitPython/pull/2026#discussion_r2112375887
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/EliahKagan
EliahKaganhttps://togithub.com/EliahKagan
May 30, 2025https://togithub.com/gitpython-developers/GitPython/pull/2027#event-17887937339
Sign up for freehttps://togithub.com/join?source=comment-repo
Sign in to commenthttps://togithub.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2027
https://togithub.com/EliahKagan
EliahKagan https://togithub.com/EliahKagan
https://togithub.com/gitpython-developers/GitPython/pull/2027/files/cc3d5d87f9a052eeaa11bbf36dd38119b2025b7c
Copilot code review https://togithub.com/apps/copilot-pull-request-reviewer
Copilot https://togithub.com/apps/copilot-pull-request-reviewer
https://togithub.com/gitpython-developers/GitPython/pull/2027/files/753e2da34721f72163d08d24308542209f4c70aa
Please reload this pagehttps://togithub.com/gitpython-developers/GitPython/pull/2027
https://togithub.com/gcmarx
https://togithub.com/EliahKagan
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.