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

Re: Timestamp of zero in reflog considered invalid

From
EBErik Bray <erik.m.bray@gmail.com>
Date
Apr 6, 2016, 13:20 UTC
Message-ID
<CAOTD34Z-tJ4-aB7uMy5Hw9D3_N+EOwHsqJ6F+cJ5yHZZzowjug@mail.gmail.com>
In-Reply-To
<xmqqbn5o2gv1.fsf@gitster.mtv.corp.google.com>
On Tue, Apr 5, 2016 at 5:52 PM, Junio C Hamano <gitster@pobox.com> wrote:
> Thanks for a report.
Thanks for looking into it!
Show 6 quoted lines
> I think this dates back to 883d60fa (Sanitize for_each_reflog_ent(),
> 2007-01-08):
>
> commit 883d60fa97c6397450fb129634054e0a6101baac
> Author: Johannes Schindelin <Johannes.Schindelin@gmx.de>
> Date:   Mon Jan 8 01:59:54 2007 +0100
Ah yes, I tracked it to this too--forgot to mention that, sorry.
> I suspect that there was some
> confusion as to how strtoul() signals an error condition when the
> commit was written, or something.

Yep--the next line *did* check for (!message) which would indicate that strtoul failed, but checking for errno==ERANGE sounds good. +1 on the patch modulo setting errno = 0 first.

Thanks, Erik

Previous: Johannes Schindelin
Message 5 of 5 in “Timestamp of zero in reflog considered invalid”
  1. Erik BrayApr 5, 2016
  2. Junio C HamanoApr 5, 2016
  3. Andreas SchwabApr 5, 2016
  4. Johannes SchindelinApr 6, 2016
  5. Erik BrayApr 6, 2016

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.