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

Re: Bizarre behavior on git commit

From
Dan Loewenherz <dloewenherz@gmail.com>
Date
May 6, 2010, 03:32 UTC
Message-ID
<n2m6f5a4e781005052032sf47733ebwf490e0369bebd03f@mail.gmail.com>
In-Reply-To
<20100505060110.GA21260@progeny.tock>
On Tue, May 4, 2010 at 11:01 PM, Jonathan Nieder <jrnieder@gmail.com> wrote:
Show 16 quoted lines
> Dan Loewenherz wrote:
>
>> 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]
> [...]
>>                           show refs from stdin that aren't in local repository
>>
>> [master 28a735f] my commit message
>>  1 files changed, 2 insertions(+), 0 deletions(-)
>> $
>
> Strange.  Maybe a hook script?

The GIT_TRACE helped--it was a hook script. The script's been in my local repo for quite a while, strange that it only started having this behavior recently. Removed the script and all works normally.

Thanks for the suggestion!
-Dan
Previous: Matthieu MoyNext: Jonathan Nieder
Message 4 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.