-
Notifications
You must be signed in to change notification settings - Fork 60
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
BUG: problems with patatt and stgit's cover letters #414
Comments
For reference, here is the
... here is the workaround I've put in place which appears to work:
|
I should add, this is with stacked-git v2.4.3 and git v2.43.0. |
Specifically, we narrowed it down to the following line in the cover letter:
(note the missing ":" after "From"). This is not a valid header, and I'm curious if it's generated by stgit or some other tool. |
Thanks for the issue report. StGit's From taking a quick look at this, here is what I'm seeing in
I note that the first line contains This is coming straight out of N.B. in my case, the equivalent git command is:
|
I think the "From:" you see on line 7 is inserted by git-send-email using the user.name and user.email values from gitconfig -- because there are no valid From: headers in the message. This only affects the cover letter, which isn't created by git-format-patch, so my guess would be that whatever creates the cover letter message is not writing the From: header correctly. |
Given that what we're seeing is behavior straight out of But, it also seems like a workflow using I'm not an expert in email-based workflows, so I'm not sure what the use cases are for |
I was surprised too.
I can only speak for my workflow, but when I'm sending multi-patch patchsets I always use FWIW, I'm currently working around this issue with the revised sendemail-validate hook I posted earlier in this thread. |
I'm closing this issue. The problem seems to lie somewhere between the behavior of I'll note that git's template Anyway, I don't see anything to do in StGit for this one. |
When git-send-email is invoked with --compose, it will create a cover letter template that is not a valid RFC2822 message by itself (e.g. it has lines starting with "GIT: " that will be removed before the message is sent). Refuse to sign such templated messages, because the contents are going to be modified before the message is sent and the signature is going to be invalid anyway. Reported-by: Paul Moore <paul@paul-moore.com> Link: stacked-git/stgit#414 Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
I've been experiencing a problem when combining patatt with stacked-git's cover letters. Everything appears to work fine when sending single patches, or even multiple patches without a cover letter, but as soon as I attempt to send a cover letter,
patatt
fails with an error similar to below:I've been in touch with the
patatt
developer to try and resolve the problem, but I thought I would also mention it here as there is some thinking that stacked-git may not be creating the cover letter properly ... or perhaps I'm screwing something up in my config, we shouldn't rule out the most likely source of error ;)Any help you can provide would be appreciated, I'm also willing to provide whatever additional information you need to help diagnose the problem, just let me know.
The discussion with the
patatt
developer, @mricon, can be seen in the Linux kernel's tool archive link below:The text was updated successfully, but these errors were encountered: