| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2bf2f7a7-cb21-7a13-3d1a-c12ff7495e37 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CA42:15B3F8:4C0209:66A324:69696FBC |
| html-safe-nonce | 508858cae69415ec0656d07057324e621fa4a63cd7316f0f627b6336ea8063c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTQyOjE1QjNGODo0QzAyMDk6NjZBMzI0OjY5Njk2RkJDIiwidmlzaXRvcl9pZCI6IjM3NzIzMDcwOTI1MjExODUyMTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4e4a87a7cf73d47de7364be6c59fc567b841fc73c98685ef196e708198620732 |
| hovercard-subject-tag | pull_request:2537193984 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/2026/files |
| twitter:image | https://avatars.githubusercontent.com/u/97672150?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/97672150?s=400&v=4 |
| og:image:alt | I also ran into the issue from #1979. My proposed solution is that GitPython should only try to run uname_cmd if it points to an executable file. I also wrote a short test class for the is_cygwin_g... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#start-of-content |
|
| https://redirect.github.com/ |
|
Sign in
| https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2026%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fpull%2F2026%2Ffiles |
|
Sign up
| https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=gitpython-developers%2FGitPython |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
| Reload | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
gitpython-developers
| https://redirect.github.com/gitpython-developers |
| GitPython | https://redirect.github.com/gitpython-developers/GitPython |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
Notifications
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Fork
964
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Star
5k
| https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython |
|
Code
| https://redirect.github.com/gitpython-developers/GitPython |
|
Issues
169
| https://redirect.github.com/gitpython-developers/GitPython/issues |
|
Pull requests
8
| https://redirect.github.com/gitpython-developers/GitPython/pulls |
|
Discussions
| https://redirect.github.com/gitpython-developers/GitPython/discussions |
|
Actions
| https://redirect.github.com/gitpython-developers/GitPython/actions |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://redirect.github.com/gitpython-developers/GitPython/security |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
Insights
| https://redirect.github.com/gitpython-developers/GitPython/pulse |
|
Code
| https://redirect.github.com/gitpython-developers/GitPython |
|
Issues
| https://redirect.github.com/gitpython-developers/GitPython/issues |
|
Pull requests
| https://redirect.github.com/gitpython-developers/GitPython/pulls |
|
Discussions
| https://redirect.github.com/gitpython-developers/GitPython/discussions |
|
Actions
| https://redirect.github.com/gitpython-developers/GitPython/actions |
|
Security
| https://redirect.github.com/gitpython-developers/GitPython/security |
|
Insights
| https://redirect.github.com/gitpython-developers/GitPython/pulse |
| Sign up for GitHub
| https://redirect.github.com/signup?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://redirect.github.com/login?return_to=%2Fgitpython-developers%2FGitPython%2Fissues%2Fnew%2Fchoose |
| EliahKagan | https://redirect.github.com/EliahKagan |
| gitpython-developers:main | https://redirect.github.com/gitpython-developers/GitPython/tree/main |
| gcmarx:main | https://redirect.github.com/gcmarx/GitPython/tree/main |
|
Conversation
21
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026 |
|
Commits
16
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits |
|
Checks
25
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/checks |
|
Files changed
4
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
correctly handle uname-cmd that doesn't point to an executable file
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#top |
|
Show all changes
16 commits
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
ec00872
add tests for is_cygwin_git
gcmarx May 21, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/ec0087227ed37cf1df441e4f0f73daa25895c4b5 |
|
de5e57c
check for the existence/execute bit on the uname command before tryin…
gcmarx May 21, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/de5e57caf26e5f6772ac02a3944e58e0aba177f3 |
|
428be1a
adding self to authors
gcmarx May 21, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/428be1a504e2b30c195786d5ca6708f4c39d90a7 |
|
58ff723
Revert "check for the existence/execute bit on the uname command befo…
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/58ff723e6757af3c508e2a9424d287e5016ac230 |
|
7187984
use pathlib.Path instead of os.path.isfile
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/71879840b8a72890f63fcadf7a92694106610ef0 |
|
3f5a942
don't keep checking if sys.platform isn't 'cygwin'
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/3f5a942be8293bb8c663631756885f877afc22e7 |
|
226f4ff
check that uname_cmd points to a file; if uname_cmd were a directory,…
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/226f4ffcaf2deed4598b9ff53902a12f6483c069 |
|
22d6284
don't use match-case, since it's a 3.10 feature
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/22d6284b099e99716da101198ce113c96e35423a |
|
b1289ee
it's is_file(), not isfile()
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/b1289eeb3676e63f4261518655ee90808e9d3d1f |
|
cffa264
turns out f-strings before 3.8 don't support {variable=} notation, ta…
gcmarx May 22, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/cffa264bdc1dd09a13a85cc27417b85628273e14 |
|
36a893b
add self to AUTHORS, add Emacs tempfiles to .gitignore
gcmarx May 23, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/36a893bbd47a08df80e0266f6ce5182915511833 |
|
c441316
use `strings` instead of `uname` to detect cygwin
gcmarx May 27, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/c441316b7714207eaf2c13be5104d15ec69943bd |
|
0df0818
debug printing
gcmarx May 27, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/0df08181f1012f0e591f998dcc57fd594e754d98 |
|
58f7710
Revert "debug printing"
gcmarx May 28, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/58f77105f5163408a9bf323518b96646ab413561 |
|
1731c1e
Revert "use `strings` instead of `uname` to detect cygwin"
gcmarx May 28, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/1731c1e377aca056d1a7acf2dd6df0e68a4e9e7e |
|
f3ab5d3
incorporate review feedback from @EliahKagan
gcmarx May 28, 2025
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/commits/f3ab5d3810b1e8c1f0365d26eea3e91808d8e4af |
|
Clear filters
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
.gitignore
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
|
AUTHORS
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463 |
|
util.py
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-cb13395ac36dd593e722ec548880a091f39732af5c934880144d1a95de67944e |
|
test_util.py
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
| .gitignore | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
|
View file
| https://redirect.github.com/gcmarx/GitPython/blob/f3ab5d3810b1e8c1f0365d26eea3e91808d8e4af/.gitignore |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/{{ revealButtonHref }} |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
| AUTHORS | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463 |
|
View file
| https://redirect.github.com/gcmarx/GitPython/blob/f3ab5d3810b1e8c1f0365d26eea3e91808d8e4af/AUTHORS |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/{{ revealButtonHref }} |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-ab6af77435f58cc0c9d4c31dfe05656e45187cc7c7fc02aada401a7642125463 |
| git/util.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-cb13395ac36dd593e722ec548880a091f39732af5c934880144d1a95de67944e |
|
View file
| https://redirect.github.com/gcmarx/GitPython/blob/f3ab5d3810b1e8c1f0365d26eea3e91808d8e4af/git/util.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/{{ revealButtonHref }} |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-cb13395ac36dd593e722ec548880a091f39732af5c934880144d1a95de67944e |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-cb13395ac36dd593e722ec548880a091f39732af5c934880144d1a95de67944e |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-cb13395ac36dd593e722ec548880a091f39732af5c934880144d1a95de67944e |
| test/test_util.py | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
|
View file
| https://redirect.github.com/gcmarx/GitPython/blob/f3ab5d3810b1e8c1f0365d26eea3e91808d8e4af/test/test_util.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/{{ revealButtonHref }} |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
| https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files#diff-62b93f19eeb2c5ff6e26eaccf3f63ee6641e87f3a6ccfc2ffb0dec86925ae245 |
| Please reload this page | https://redirect.github.com/gitpython-developers/GitPython/pull/2026/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |