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

error using `git mergetool --tool=meld`

From
MGMatthew Groth <mgroth49@gmail.com>
Date
May 16, 2017, 18:26 UTC
Message-ID
<83801c20-96e6-7f9c-1e0e-2d46e32dc5f6@gmail.com>

When using `git mergetool --tool=kdiff3`, it works fine. But with `git mergetool --tool=meld` I get this for every merge conflict:

```
Normal merge conflict for 'builders/pdfBuilder.py':
   {local}: created file
   {remote}: created file
Traceback (most recent call last):
   File "/usr/local/bin/meld", line 20, in <module>
     filename = arg.split('=')[1]
IndexError: list index out of range
builders/pdfBuilder.py seems unchanged.
```
And the contents of /usr/local/bin/meld are:
arglist = []
for arg in sys.argv[1:]:
     if arg.startswith('--output'):
         filename = arg.split('=')[1] ##### <<--------- line 20
         newArg = '--output=' + fix_abspath(filename)
     elif arg.startswith('-'):
         newArg = arg
     else:
         newArg = fix_abspath(arg)
     arglist.append(newArg)
I'm on OSX: 10.12.4

git --version git version 2.12.2

This is my first post to the mailing list, sorry if the bug report is missing anything.

Next: Samuel Lijin
Message 1 of 2 in “error using `git mergetool --tool=meld`”
  1. Matthew GrothMay 16, 2017
  2. Samuel LijinMay 16, 2017

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.