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

Re: jk/tag-contains (Re: What's cooking in git.git (Jul 2010, #05; Wed, 28))

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Aug 2, 2010, 20:08 UTC
Message-ID
<vpqk4o8bwwd.fsf@bauges.imag.fr>
In-Reply-To
<20100802200209.GD2180@burratino>
Jonathan Nieder <jrnieder@gmail.com> writes:
Show 12 quoted lines
> Junio C Hamano wrote:
>
>> You need to be careful here, though.  What if you pulled from somebody
>> whose clock is set grossly in the future?
>
> We could check for that and give relevant advice:
>
>  fatal: committer date <date> precedes parent date <date>
>  hint: It looks like you are trying to commit on top of a commit
>  hint: from 5 years into the future.
>  hint: Use "git rebase -f" to rewrite the commit with a more
>  hint: sensible date, and please, fix your clocks!

If the problem is the commit you've just pulled, I'd advise against re-writing it: it's published, it's too late.

Be careful also: Git can hardly guess whether your clock is late, or whether your co-worker's clock is in the future.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Jonathan NiederNext: Jonathan Nieder
Message 7 of 12 in “What's cooking in git.git (Jul 2010, #05; Wed, 28)”
  1. Junio C HamanoJul 29, 2010
  2. Jeff KingJul 30, 2010
  3. jk/tag-contains (Re: What's cooking in git.git (Jul 2010, #05; Wed, 28))Jonathan Nieder, Jul 31, 2010
  4. Jeff KingJul 31, 2010
  5. Junio C HamanoAug 2, 2010
  6. Jonathan NiederAug 2, 2010
  7. Matthieu MoyAug 2, 2010
  8. Jonathan NiederAug 2, 2010
  9. Junio C HamanoAug 2, 2010
  10. Jeff KingAug 5, 2010
  11. Junio C HamanoAug 5, 2010
  12. Jeff KingAug 5, 2010

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.