git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] tests: make all test files executable

From
Jeff King <peff@peff.net>
Date
Oct 4, 2009, 13:40 UTC
Message-ID
<20091004134022.GA14209@sigill.intra.peff.net>
In-Reply-To
<1762B430-2DC0-48F5-8C34-8428F9145A1E@mailservices.uwaterloo.ca>
On Sun, Oct 04, 2009 at 09:18:20AM -0400, Mark Rada wrote:
Show 7 quoted lines
> >Ah, nevermind. The problem is that your patch was word-wrapped, making
> >the second "diff --git" line bogus. It would have been nice to have it
> >print a warning instead of silently ignoring that bit of the patch.
> >
> I didn't have format=flowed buggering things up this time, so I don't
> quite understand the problem; could you please explain with more
> details?
Sure. The patch is perfect except for one line. What should have been:
diff --git a/t/t9501-gitweb-standalone-http-status.sh b/t/t9501-gitweb-standalone-http-status.sh

was wrapped to:

diff --git a/t/t9501-gitweb-standalone-http-status.sh
b/t/t9501-gitweb-standalone-http-status.sh

I have no idea how you did that, though. :)

It looks like you send with Thunderbird. How do you get the diff content
into the email? Is it possible that it wraps the content after you have
gotten it there?

> When I try to apply the patch from a saved copy of the e-mail, I get
> the following error:
> 
> 	# git am ~/Downloads/\[PATCH\]\ tests_\ make\ all\ test\ files\
> executable.eml
> 	Patch format detection failed.
> 	zsh: exit 1     git am
> 
> The difference between the patch created by format-patch and the saved
> e-mail is just some e-mail header information. Is that a different error
> than what you were getting? I'm not sure what I'm doing wrong here, help
> would be appreciated.

Yeah, that's totally different than the problem I was having. I save to
an mbox from mutt, which "git am" understands just fine. I'd have to see
what was in your .eml file to know why "git am" couldn't figure it out
(and it might be a good test case, as "git am" has recently learned to
accept more mailbox formats).

-Peff
Previous: Mark RadaNext: Mark Rada
Message 5 of 7 in “tests: make all test files executable”
  1. tests: make all test files executableMark Rada, Oct 2, 2009
  2. Jeff KingOct 2, 2009
  3. Jeff KingOct 2, 2009
  4. Mark RadaOct 4, 2009
  5. Jeff KingOct 4, 2009
  6. Mark RadaOct 5, 2009
  7. Jeff KingOct 5, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.