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

Re: Possible merge bug

From
SMSaksham Mittal <saksham.mittal000@gmail.com>
Date
Nov 11, 2021, 11:20 UTC
Message-ID
<5aa1fb67-6bd8-6de3-8271-369722b6ebef@gmail.com>
In-Reply-To
<CAJcz5TVsv20+FmHR67_UhL_7rhEGvfPHeP3RMiRtnSGAEKiwBg@mail.gmail.com>
Hello there,
I wrote a small script as well that automates testing this use case as well, but I don't really know what the policy is on attachments in git, seeing as how it's my first time contributing to git.
I am on git version 2.33.1 on Fedora 35, but I am not seeing the bug while running the script. So, I grabbed the git source code and built it. This version is 2.34.0.rc2.9.g4d53e91c6b, not quite your version but I tried to go back to the commit you mentioned and build it, but I faced some errors and no binary would build.
Anyway, the version I built and tested also did not permit auto merge and required me to manually make changes as well, so the issue seems to have been fixed.
You can take a look at my script as well, I followed your instructions as best I could and built this:
#!/bin/bash
git --version

mkdir sample cd sample git init echo -e "a\nb\nc\n" > test git add . git commit -m "abc"

git branch b1 git switch b1

echo -e "b\na\nc" > test git add . git commit -m "bac"

git switch main git branch b2 git switch b2

echo -e "b\nc\na" > test git add . git commit -m "bca"

git switch main git merge b1 git merge b2

git log --graph --oneline --all
Cheers,
Saksham Mittal
Previous: Michael SchiffNext: Philippe Blain
Message 2 of 5 in “Possible merge bug”
  1. Michael SchiffNov 2, 2021
  2. Saksham MittalNov 11, 2021
  3. Philippe BlainNov 11, 2021
  4. Michael SchiffNov 13, 2021
  5. Johannes SixtNov 13, 2021

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.