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

bugreport: git does not like subseconds

From
JEJan Engelhardt <jengelh@medozas.de>
Date
Nov 13, 2008, 16:26 UTC
Message-ID
<alpine.LNX.1.10.0811131722360.13330@fbirervta.pbzchgretzou.qr>

Git does not like subseconds in $GIT_{AUTHOR,COMMITTER}_DATE, and somehow does time travel instead. Perhaps this is a Glibc limitation? Running openSUSE 11's glibc-2.8(which is actually a 2.7 snapshot I think: glibc-2.8-2008042513.tar.bz2).

$ git init
Initialized empty Git repository in /dev/shm/f/.git/
$ echo tomato >banana.c
$ git add banana.c
$ GIT_AUTHOR_DATE="2008-11-11 19:36:33.983771268 +0100" git ci -m 'foo'
Created initial commit e65a6b0: foo
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 banana.c
$ git log
commit e65a6b06c2ff3ef458cb16e7ee6f17ef39757538
Author: Jan Engelhardt <jengelh@medozas.de>
Date:   Mon Mar 5 06:47:48 2001 +0100
    foo
Next: Linus Torvalds
Message 1 of 4 in “bugreport: git does not like subseconds”
  1. Jan EngelhardtNov 13, 2008
  2. Linus TorvaldsNov 13, 2008
  3. Jan EngelhardtNov 13, 2008
  4. Junio C HamanoNov 13, 2008

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.