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

Re: Git push race condition?

From
Jeff King <peff@peff.net>
Date
Mar 25, 2014, 14:57 UTC
Message-ID
<20140325145700.GA10132@sigill.intra.peff.net>
In-Reply-To
<CAAyEjTPtaKExJJSc3yrxVNzx0DmOyeUFH-Uxz3dn0iezqc5VKA@mail.gmail.com>
On Tue, Mar 25, 2014 at 09:45:20AM -0400, Scott Sandler wrote:
> Version of git on the server? git version 1.8.3-rc0

There was significant work done between v1.8.3 and v1.8.4 on handling races in the ref code. As I said before, I don't think the symptoms you are describing are anything we have seen, or that could be triggered by the races we found (which were mostly to do with ref enumeration, not ref writing). But I would suggest upgrading to a newer version of git as a precaution.

You mentioned elsewhere turning on the reflog, which I think is a good idea. If there is a race of this sort, you will see a "hole" in the reflog, where a ref goes from A->B, then again from A->B' (whereas with normal writes, it would be B->B').

-Peff
Previous: Matthieu MoyNext: Scott Sandler
Message 15 of 17 in “Git push race condition?”
  1. Scott SandlerMar 24, 2014
  2. Matthieu MoyMar 24, 2014
  3. Scott SandlerMar 24, 2014
  4. Matthieu MoyMar 24, 2014
  5. Junio C HamanoMar 24, 2014
  6. Ævar Arnfjörð BjarmasonMar 24, 2014
  7. Scott SandlerMar 24, 2014
  8. Jeff KingMar 24, 2014
  9. Jeff KingMar 24, 2014
  10. Nasser GrainawiMar 24, 2014
  11. Scott SandlerMar 25, 2014
  12. Matthieu MoyMar 25, 2014
  13. Scott SandlerMar 25, 2014
  14. Matthieu MoyMar 25, 2014
  15. Jeff KingMar 25, 2014
  16. Scott SandlerApr 10, 2014
  17. Matthieu MoyApr 11, 2014

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.