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

[BUG REPORT] --date argument doesn't validate dates

From
YYuri <yuri@rawbw.com>
Date
Apr 22, 2020, 20:40 UTC
Message-ID
<d633919a-99a4-0b90-f355-66a17000f83f@rawbw.com>

For example, the following command accepts an invalid month "Dx" and an invalid year "20221" and sets the month to "Apr" and the year to "2020".

Yuri
$ git commit --amend --no-edit --date "Mon 20 Dx 20221 20:19:19 PST"
[master 668e255] Initial
  Date: Mon Apr 20 20:19:19 2020 -0700
  1 file changed, 1 insertion(+)
  create mode 100644 File
[yuri@yv /usr/home/yuri/github/git-date]$ git log
commit 668e255b54d08ed898e6d44f19954b2116d5a56c (HEAD -> master)
Author: Yuri <yuri@rawbw.com>
Date:   Mon Apr 20 20:19:19 2020 -0700
     Initial
Next: brian m. carlson
Message 1 of 2 in “[BUG REPORT] --date argument doesn't validate dates”
  1. YuriApr 22, 2020
  2. brian m. carlsonApr 22, 2020

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.