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

Fix GitError being raised in initialimport git#658

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Byron merged 1 commit intogitpython-developers:masterfromterminalmage:issue657
Sep 28, 2017

Conversation

terminalmage
Copy link
Contributor

This catches any raise of one of the custom exceptions defined ingit.exc during the imports in the dunder init, and raises anImportError in those cases.

This is my (perhaps naïve) attempt tofix#657.

This catches any raise of one of the custom exceptions defined in`git.exc` during the imports in the dunder init, and raises an`ImportError` in those cases.
@Byron
Copy link
Member

Thanks a ton for your contribution, and my apologies for getting to this PR that late!

This looks great!

@ByronByron merged commit8ef53c5 intogitpython-developers:masterSep 28, 2017
terminalmage added a commit to terminalmage/GitPython that referenced this pull requestJun 1, 2018
This is related to my fix ingitpython-developers#658. Apparently, MacOS adds a gitexecutable that is just a stub which displays an error. This gets pastthe try/except I added ingitpython-developers#658, and allows all of the GitPythoncomponents to be imported, but since the executable is not *actually*git, it results in an exception when ``refresh()`` attemepts to run a``git version``.
Byron pushed a commit that referenced this pull requestJun 5, 2018
This is related to my fix in#658. Apparently, MacOS adds a gitexecutable that is just a stub which displays an error. This gets pastthe try/except I added in#658, and allows all of the GitPythoncomponents to be imported, but since the executable is not *actually*git, it results in an exception when ``refresh()`` attemepts to run a``git version``.
riley-martine pushed a commit to riley-martine/GitPython that referenced this pull requestDec 7, 2023
Fix GitError being raised in initial `import git`
riley-martine pushed a commit to riley-martine/GitPython that referenced this pull requestDec 7, 2023
This is related to my fix ingitpython-developers#658. Apparently, MacOS adds a gitexecutable that is just a stub which displays an error. This gets pastthe try/except I added ingitpython-developers#658, and allows all of the GitPythoncomponents to be imported, but since the executable is not *actually*git, it results in an exception when ``refresh()`` attemepts to run a``git version``.
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
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[GitPython >= 2.1.4] Can't import without git CLI
2 participants
@terminalmage@Byron

[8]ページ先頭

©2009-2025 Movatter.jp