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

git tag -h fatal error with global tag.sort config

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Sep 12, 2021, 11:28 UTC
Message-ID
<0daf6907-b472-a756-1240-4c78f8f4d37e@gmail.com>
Hi,
I stumbled on Debian bug report [1], and I can reproduce the bug.
In global config (~/.gitconfig), I set:
```
[tag]
	sort = creatordate
```

When I run `git tag -h` inside a Git repository (such as git.git), instead of usage summary, I got:

``` fatal: not a git repository, but the field 'creatordate' requires access to object data ```

But plain `git tag` works fine.

This bug occurs on v2.33.0 as well as version in the original bug report (v2.26.0-rc2) and v2.25.1.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954811
-- 
An old man doll... just what I always wanted! - Clara
Next: SZEDER Gábor
Message 1 of 5 in “git tag -h fatal error with global tag.sort config”
  1. Bagas SanjayaSep 12, 2021
  2. SZEDER GáborSep 12, 2021
  3. Jeff KingSep 12, 2021
  4. Bagas SanjayaSep 13, 2021
  5. Bagas SanjayaOct 18, 2021

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.