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

Re: Git push race condition?

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Mar 25, 2014, 14:03 UTC
Message-ID
<vpqvbv2pe8e.fsf@anie.imag.fr>
In-Reply-To
<CAAyEjTPtaKExJJSc3yrxVNzx0DmOyeUFH-Uxz3dn0iezqc5VKA@mail.gmail.com>
Scott Sandler <scott.m.sandler@gmail.com> writes:
> Is there a hook or cron job that updates or gcs this repository or any
> refs? No. No cron jobs touching the repo at all, and all the hooks are
> read-only.

If you activated the reflog, you can double-check that. Running git reflog on the server should give you something like this:

$ git reflog show master bf40764 (HEAD, master) master@{0}: push 2c4fc6d master@{1}: push e72211a master@{2}: push ...

It should be possible to check the reflog for non-fast forward. I don't find an obvious way, but a script going through the sha1 list and checking that each line is an ancestor of the previous should be easy.

I can't exclude the hypothesis of a bug in Git, but my feeling is that there's an issue with your setup.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Scott SandlerNext: Scott Sandler
Message 12 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.