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

Re: Merge commit says refs/heads/<branchname> instead of <branchname>

From
Mateusz Loskot <mateusz@loskot.net>
Date
Nov 29, 2019, 08:06 UTC
Message-ID
<CABUeae9jBpvkxPGZPC=vFsuxB2r63W457LqWvXynF4Jnbm4HXg@mail.gmail.com>
In-Reply-To
<CABUeae9m+r-p-aaix_NFTFB1cAomFHgC8mckRHPiiRt1qRwv_w@mail.gmail.com>
On Fri, 15 Nov 2019 at 22:54, Mateusz Loskot <mateusz@loskot.net> wrote:
Show 27 quoted lines
> On Wed, 13 Nov 2019 at 08:12, Junio C Hamano <gitster@pobox.com> wrote:
> > Jeff King <peff@peff.net> writes:
> >
> > > If I do:
> > >
> > >   git reset --hard tip && git merge --no-edit refs/heads/side
> > >   git log -1 --oneline
> > >
> > > then I get:
> > >
> > >   Merge branch 'refs/heads/side'
> > >
> > > And the behavior seems the same going back to older versions of Git. Are
> > > you sure your workflow hasn't changed somehow?
> > >
> > > Can you show an example that triggers the behavior for you?
> >
> > Yes, I am curious, too.
>
> Jeff, Junio,
>
> Thank you very much for your responses and confirmations
> of expected behaviours.
>
> I will try to confirm with my colleagues what's changed,
> what are actual commands and Git versions in use.
> I'll be back here if I discover anything suspicious.

Apparently, the workflow involved Git client Fork and one of recent updates of the client introduced the change in the behaviour:

I reported the issue https://github.com/ForkIssues/TrackerWin/issues/570 and the bug has been confirmed "we replaced git merge branch with git merge /refs/heads/branch"

Jeff, Junio, thanks for help.
Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Previous: Mateusz Loskot
Message 5 of 5 in “Merge commit says refs/heads/<branchname> instead of <branchname>”
  1. Mateusz LoskotNov 12, 2019
  2. Jeff KingNov 13, 2019
  3. Junio C HamanoNov 13, 2019
  4. Mateusz LoskotNov 15, 2019
  5. Mateusz LoskotNov 29, 2019

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.