Movatterモバイル変換


[0]ホーム

URL:


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

revert util.expand_path() due to regression#1240

Merged
Byron merged 1 commit intogitpython-developers:mainfrom
Yobmod:addtypes
May 14, 2021
Merged

revert util.expand_path() due to regression#1240
Byron merged 1 commit intogitpython-developers:mainfrom
Yobmod:addtypes

Conversation

@Yobmod
Copy link
Contributor

@YobmodYobmod commentedMay 13, 2021
edited
Loading

Hopefully tofix#1238.

The orginal change (commit39eb0e6) was attempting to get mypy consistant with expand_path(None), as it doesn't like try except blocks without some type narrowing and expanduser doesn't accept None (triggering the Exception). Added mypy ignores for now, to allow CI to pass.

It passes tests either way, so can't be sure, but the traceback points to an overload of cmd.Git.excecute(), wherein cwd = self._working_dir.
That leads to Git.init(), where self._working_dir = expand_user(working_dir)

@Byron
Copy link
Member

Thanks for the fix! What I understand is that the try-catch block has to be entered withNone, which previously was prevented by the additional type check that mypi wanted to enforce.

It's quite amazing how GitPython seems to be at a state where minor changes will break someone, somewhere, under certain situations like multi-threading. It's a little frightening too.

@ByronByron merged commit572bbb3 intogitpython-developers:mainMay 14, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Development

Successfully merging this pull request may close these issues.

ImportError on latest GitPython 3.1.16

2 participants

@Yobmod@Byron

[8]ページ先頭

©2009-2026 Movatter.jp