Skip to content

Commit without executing hooks, fixes #468 #479

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

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Jun 20, 2016

This is a start to fix #468

However, I have no idea where to add tests for this.
I couldn't find any basic test that just tests the commit, with executing hooks. Tips most appreciated.

@Byron Byron added this to the v2.0.7 - Bugfixes milestone Jun 25, 2016
@Byron
Copy link
Member

Byron commented Jun 25, 2016

With the current code-base, it would be a bit cumbersome to test, as you would probably have to check that an actual hook as not been called. Mocking injection seems difficult without a little refactoring.

So I guess merging it will just be fine in this case, thanks for your contribution !

@Byron Byron merged commit 4896fa2 into gitpython-developers:master Jun 25, 2016
@peterbe
Copy link
Contributor Author

peterbe commented Jun 26, 2016

Awesome! That's going to really help me.
So, when will this be in a pypi release?

@Byron
Copy link
Member

Byron commented Jul 17, 2016

A new release was just pushed to pypi.
Usually you shouldn't have to wait for a release though, as you should always be able to install from the git repository, specifying a tag, commit or branch.

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

Successfully merging this pull request may close these issues.

Commit without executing hooks
2 participants