Skip to content

correctly handle uname-cmd that doesn't point to an executable file#2026

Merged
EliahKagan merged 16 commits intogitpython-developers:mainfrom
gcmarx:main
May 28, 2025
Merged

correctly handle uname-cmd that doesn't point to an executable file#2026
EliahKagan merged 16 commits intogitpython-developers:mainfrom
gcmarx:main

Conversation

@gcmarx
Copy link
Contributor

@gcmarx gcmarx commented May 22, 2025

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_git function. I don't have a machine with Cygwin, so I can't test that it actually does work, but I trust the Python docs when they say that on Cygwin, sys.platform will be cygwin.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants