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

Re: git add —ignore-errors causes --renormalize

From
Jeff King <peff@peff.net>
Date
Jan 29, 2019, 22:51 UTC
Message-ID
<20190129225121.GD1895@sigill.intra.peff.net>
In-Reply-To
<20190129213533.GE13764@szeder.dev>
On Tue, Jan 29, 2019 at 10:35:33PM +0100, SZEDER Gábor wrote:
> t0025 with '--stress' usually fails within seconds when run on the
> merge of 'jk/add-ignore-errors-bit-assignment-fix' and 'master' [1]:

Thanks for the pointer. I mostly cargo-culted the test from the rest of that script, so I didn't think too hard about race conditions. I think the key difference is that the other tests are _actually_ using --renormalize, which is going to re-hash the files and notice the line ending change. And my test is not, so it will sometimes notice and sometimes not.

It seems like we could probably solve it through some clever tweaking of mtimes to make sure we have a consistent timestamp setup, but it's resisting my quick efforts. I'm at an airport traveling right now, so I may not get to it for a day or three.

-Peff
Previous: SZEDER Gábor
Message 6 of 6 in “git add —ignore-errors causes --renormalize”
  1. Dmitriy SmirnovJan 17, 2019
  2. Jeff KingJan 17, 2019
  3. Jeff KingJan 17, 2019
  4. Torsten BögershausenJan 19, 2019
  5. SZEDER GáborJan 29, 2019
  6. Jeff KingJan 29, 2019

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.