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

Running the .git-pre-commit hook returns TypeError #837

Closed
tijko opened this issue Jun 14, 2016 · 1 comment
Closed

Running the .git-pre-commit hook returns TypeError #837

tijko opened this issue Jun 14, 2016 · 1 comment

Comments

@tijko
Copy link
Contributor

tijko commented Jun 14, 2016

Running the git pre-commit hook on python 3.5.1 returns the following traceback:

[tijko@arch psutil]  git commit -m 'Without checkoutput overridden'
Traceback (most recent call last):
  File ".git/hooks/pre-commit", line 47, in <module>
    main()
  File ".git/hooks/pre-commit", line 14, in main
    files = [x for x in out.split('\n') if x.endswith('.py') and
TypeError: a bytes-like object is required, not 'str'
@tijko tijko changed the title Running the .git-pre-commit hook returns TypeError Running the .git-pre-commit hook returns TypeError Jun 14, 2016
@giampaolo
Copy link
Owner

This has been fixed in #828

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

No branches or pull requests

2 participants