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

git mergetool does not work since 2.29.0

From
ZZaoshi <kabazaoshi@gmail.com>
Date
Oct 28, 2020, 07:25 UTC
Message-ID
<a284dc99-7da3-a313-6d9b-1dd40cbc5b22@gmail.com>
Hello,

I have tried using 'git bugreport' but could not figure out how to edit text in the console and send report, so I'm just reusing that form in this email. Let me know if any other information is needed.

What did you do before the bug happened? Ran the following commands: git checkout mybranch git merge master git mergetool

What did you expect to happen? I expected git to open my configured mergetool

What happened instead? It fails with message "merge of myfile.cs failed"

What's different between what you expected and what actually happened? Merge does not work.

Anything else you want to add: This issue started to happen since git version 2.29.0. Earlier versions work as expected.

.gitconfig:
[core]
     editor = \"C:\\Microsoft VS Code\\Code.exe\" --wait
[user]
     name = myname
     email = myemail
[fetch]
     prune = true
[pull]
     rebase = true
[diff]
     tool = bc4
[merge]
     tool = bc4
[difftool "bc4"]
     cmd = \"c:\\Program Files\\Beyond Compare 4\\bcomp.exe\" $LOCAL $REMOTE
     trustExitCode = true
[mergetool "bc4"]
     cmd = \"c:\\Program Files\\Beyond Compare 4\\bcomp.exe\" $LOCAL 
$REMOTE $BASE $MERGED
     trustExitCode = true

[System Info] git version: git version 2.29.1.windows.1 cpu: x86_64 built from commit: e6d53c456169235fe72602e2b4d985934fa9ad23 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh uname: Windows 10.0 19041 compiler info: gnuc: 10.2 libc info: no libc information available $SHELL (typically, interactive shell): <unset>

[Enabled Hooks]

Regards, Z

Next: Johannes Schindelin
Message 1 of 2 in “git mergetool does not work since 2.29.0”
  1. ZaoshiOct 28, 2020
  2. Johannes SchindelinDec 1, 2020

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.