Skip to content
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

'Git' object attribute 'GIT_PYTHON_TRACE' is read-only #222

Closed
techtonik opened this issue Jan 3, 2015 · 3 comments
Closed

'Git' object attribute 'GIT_PYTHON_TRACE' is read-only #222

techtonik opened this issue Jan 3, 2015 · 3 comments

Comments

@techtonik
Copy link

I want to trace arc90/git-sweep#29 and trace just a single call, but GitPython only allows to control debug output with environment options, which is inconvenient.

@Byron
Copy link
Member

Byron commented Jan 3, 2015

You can still set this variable, but will have to do that through the type. Doing it through an instance will try to create a new instance variable and fail thanks to slots.
For example:

type(myrepo.git).GIT_PYTHON_TRACE='full' # works
myrepo.git.GIT_PYTHON_TRACE='full' # fails

@Byron Byron added this to the v0.3.3 milestone Jan 3, 2015
@techtonik
Copy link
Author

Looks like a hack to me. Too late anyway.

@Byron Byron closed this as completed Jan 3, 2015
@techtonik
Copy link
Author

Just for the reference - I went down to my site-packages and removed __slots__ definition manually from installed GitPython. That appeared to be the fastest way to fix things.

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

No branches or pull requests

2 participants