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

Bizarre behavior on git commit

From
Dan Loewenherz <dloewenherz@gmail.com>
Date
May 5, 2010, 05:46 UTC
Message-ID
<s2t6f5a4e781005042246sb9ef3d48j134b22b5b41133ed@mail.gmail.com>

I'm running into a weird issue in a specific repo where "git show-ref" usage is being displayed after invocating "git commit".

E.g.
$ git commit -m "my commit message"
usage: git show-ref [-q|--quiet] [--verify] [--head]
[-d|--dereference] [-s|--hash[=<n>]] [--abbrev[=<n>]] [--tags]
[--heads] [--] [pattern*]
   or: git show-ref --exclude-existing[=pattern] < ref-list
    --tags                only show tags (can be combined with heads)
    --heads               only show heads (can be combined with tags)
    --verify              stricter reference checking, requires exact ref path
    --head                show the HEAD reference
    -d, --dereference     dereference tags into object IDs
    -s, --hash[=<n>]      only show SHA1 hash using <n> digits
    --abbrev[=<n>]        use <n> digits to display SHA-1s
    -q, --quiet           be quiet
    --exclude-existing[=<pattern>]
                          show refs from stdin that aren't in local repository
[master 28a735f] my commit message
 1 files changed, 2 insertions(+), 0 deletions(-)
$

This happens for every commit in this repository. I looked through the git source and failed to find any reference to git show-ref (or anything related to it) in buildin/commit.c. I gave up my search in hope that someone on the git list would have a better idea. I'm running version 1.7.0.3.311.g6a6955.

-Dan
Next: Jonathan Nieder
Message 1 of 6 in “Bizarre behavior on git commit”
  1. Dan LoewenherzMay 5, 2010
  2. Jonathan NiederMay 5, 2010
  3. Matthieu MoyMay 5, 2010
  4. Dan LoewenherzMay 6, 2010
  5. Jonathan NiederMay 6, 2010
  6. Chris PackhamMay 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.