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

Sign up
Appearance settings

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

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
EliahKagan merged 16 commits into gitpython-developers:main from gcmarx:main
May 28, 2025
Merged
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
ec00872
add tests for is_cygwin_git
gcmarx May 21, 2025
de5e57c
check for the existence/execute bit on the uname command before tryin...
gcmarx May 21, 2025
428be1a
adding self to authors
gcmarx May 21, 2025
58ff723
Revert "check for the existence/execute bit on the uname command befo...
gcmarx May 22, 2025
7187984
use pathlib.Path instead of os.path.isfile
gcmarx May 22, 2025
3f5a942
don't keep checking if sys.platform isn't 'cygwin'
gcmarx May 22, 2025
226f4ff
check that uname_cmd points to a file; if uname_cmd were a directory,...
gcmarx May 22, 2025
22d6284
don't use match-case, since it's a 3.10 feature
gcmarx May 22, 2025
b1289ee
it's is_file(), not isfile()
gcmarx May 22, 2025
cffa264
turns out f-strings before 3.8 don't support {variable=} notation, ta...
gcmarx May 22, 2025
36a893b
add self to AUTHORS, add Emacs tempfiles to .gitignore
gcmarx May 23, 2025
c441316
use `strings` instead of `uname` to detect cygwin
gcmarx May 27, 2025
0df0818
debug printing
gcmarx May 27, 2025
58f7710
Revert "debug printing"
gcmarx May 28, 2025
1731c1e
Revert "use `strings` instead of `uname` to detect cygwin"
gcmarx May 28, 2025
f3ab5d3
incorporate review feedback from @EliahKagan
gcmarx May 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "debug printing"
This reverts commit 0df0818.
  • Loading branch information
gcmarx committed May 28, 2025
commit 58f77105f5163408a9bf323518b96646ab413561
2 changes: 0 additions & 2 deletions git/util.py
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,6 @@ def _is_cygwin_git(git_executable: str) -> bool:
process = subprocess.Popen([strings_cmd, git_cmd], stdout=subprocess.PIPE, text=True)
strings_output, _ = process.communicate()
is_cygwin = any(x for x in strings_output if "cygwin" in x.lower())
if not is_cygwin:
_logger.debug(f"is not cygwin: {strings_output}")
except Exception as ex:
_logger.debug("Failed checking if running in CYGWIN due to: %r", ex)
_is_cygwin_cache[git_executable] = is_cygwin
Expand Down

AltStyle によって変換されたページ (->オリジナル) /