-
Notifications
You must be signed in to change notification settings - Fork 739
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
TypeError: %b requires a bytes-like object, or an object that implements __bytes #630
Comments
I just ran into this too, looks like it's user error. The callback functions need to return byte-strings. From the man page:
In my case, I had to use To the maintainers: perhaps git-filter-repo could produce a friendlier error message in cases like this? For example, in Alternatively, git-filter-repo could check if the callbacks return a |
You didn't specify your email callback, but I suspect you forgot to include a
Thanks for commenting; my guess from the error they got is actually that they forgot the
maintainer, actually. There's just one of me. Anyway... For callbacks like name, filename, message, email, or refname, it might be simple -- though potentially expensive since the callbacks are called so many times. And what about cases like commit or tag callbacks? Do we have to check every field of the resulting object that was operated on, since there's no way to know which field might have been modified? And do so every time the callback is called? While I like the idea of friendlier messages, I don't like the idea of introducing such overhead. |
For
--force --refs "staging~17"..staging --email-callback '...'
The text was updated successfully, but these errors were encountered: