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

Re: git merge FETCH_HEAD produced bad commit message

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 26, 2007, 14:32 UTC
Message-ID
<81b0412b0701260632l2181ef10i8d49ee9a795228b7@mail.gmail.com>
In-Reply-To
<20070126142420.GO10812@mellanox.co.il>
On 1/26/07, Michael S. Tsirkin <mst@mellanox.co.il> wrote:
> > Does it need to?
>
> FETCH_HEAD is not a real head name, so I think the message above is a bug.
>
For whatever Git cares - it is a real reference.
Show 9 quoted lines
> > Is the below enough (could be line-wrapped):
> >
> > git merge --no-commit FETCH_HEAD && \
> > git commit -M "Merge $(cut -d ' ' -f 2- < $(git rev-parse
> > --git-dir)/FETCH_HEAD) \
> > into $(git name-rev HEAD | cut -d ' ' -f 2-)"
>
> Or I can just commit --amend and edit it manually.
> But that's not the point.

What is the point then? It looked like you were complaining it were not done automatically. I showed you how to script it. The message can be made to look exactly as it is for git-pull. So what's wrong?

Show 5 quoted lines
> > In the long run you'll almost certainly find this commit message
> > useless, though.
>
> Isn't 'Merge ssh://<hidden>/usr/src/ofed_1_2 info ofed_1_2' much more
> useful than Merge commit 'FETCH_HEAD'?

What for? Isn't "Merge origin/ofed_1_2 into ofed_1_2" much more useful than "Merge FETCH_HEAD"? (IOW: Why don't you just save the fetch result somewhere and have a "source description" from that?)

Previous: Michael S. TsirkinNext: Michael S. Tsirkin
Message 4 of 5 in “git merge FETCH_HEAD produced bad commit message”
  1. Michael S. TsirkinJan 25, 2007
  2. Alex RiesenJan 26, 2007
  3. Michael S. TsirkinJan 26, 2007
  4. Alex RiesenJan 26, 2007
  5. Michael S. TsirkinJan 26, 2007

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.