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

Re: Bizarre behavior on git commit

From
Chris Packham <judge.packham@gmail.com>
Date
May 5, 2010, 16:52 UTC
Message-ID
<t2ga038bef51005050952u3370cf68pa45496e56a4adb7b@mail.gmail.com>
In-Reply-To
<s2t6f5a4e781005042246sb9ef3d48j134b22b5b41133ed@mail.gmail.com>
Hi,
On Tue, May 4, 2010 at 10:46 PM, Dan Loewenherz <dloewenherz@gmail.com> wrote:
Show 7 quoted lines
> 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]
> ...

This may or may not be the case for you but I did have a bit of a face-palm issue a while back because I was tinkering with a __git_ps1 bash script and forgot. I was actually getting output from one git command or another and couldn't figure out why until I eventually figured out that the commands that were complaining were used in my __git_ps1 script. This was mainly when I was doing slightly unexpected things (at least as far as __git_ps1 was concerned, e.g during an interactive rebase ).

Its probably not your problem but just double check with 'echo "$PS1"' from your shell.

Previous: Jonathan Nieder
Message 6 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.