Skip to content

Fix exception on import in MacOS #763

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
merged 1 commit into from
Jun 5, 2018

Conversation

terminalmage
Copy link
Contributor

This is related to my fix in #658. Apparently, MacOS adds a git executable that is just a stub which displays an error. This gets past the try/except I added in #658, and allows all of the GitPython components to be imported, but since the executable is not actually git, it results in an exception when refresh() attemepts to run a git version.

Fixes #762.

This is related to my fix in gitpython-developers#658. Apparently, MacOS adds a git
executable that is just a stub which displays an error. This gets past
the try/except I added in gitpython-developers#658, and allows all of the GitPython
components 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
Copy link
Member

Byron commented Jun 5, 2018

Please apologize the late merge, and thanks a lot for this improvement! It's much appreciated!

@Byron Byron added this to the v2.1.11 - Bugfixes milestone Jun 5, 2018
@Byron Byron merged commit ce5dfe7 into gitpython-developers:master Jun 5, 2018
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.

Failed import raises non-ImportError exception on MacOS
2 participants