{"thread":{"id":"45985","subject":"Re: error using `git mergetool --tool=meld`","startedAt":"2017-05-16T21:13:30Z","lastAt":"2017-05-16T21:13:30Z","messageCount":1,"participants":["Matthew Groth"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"319966","messageId":"68c4da38-2f3a-1b46-c2e8-3fa1c1170e6d@gmail.com","threadId":"45985","inReplyTo":null,"subject":"Re: error using `git mergetool --tool=meld`","fromName":"Matthew Groth","fromEmail":"mgroth49@gmail.com","sentAt":"2017-05-16T21:12:19Z","receivedAt":"2017-05-16T21:13:30Z","isPatch":false,"sender":{"key":"mgroth49@gmail.com","avatar":null},"body":"\nI tried `git config mergetool.meld.hasOutput true` followed again by \n`git mergetool --tool=meld` and got the same error.\n\nMy original message:\n\n         When using `git mergetool --tool=kdiff3`, it works fine. But \nwith `git mergetool --tool=meld` I get this for every merge conflict:\n\n         ```\n         Normal merge conflict for 'builders/pdfBuilder.py':\n           {local}: created file\n           {remote}: created file\n         Traceback (most recent call last):\n           File \"/usr/local/bin/meld\", line 20, in <module>\n             filename = arg.split('=')[1]\n         IndexError: list index out of range\n         builders/pdfBuilder.py seems unchanged.\n         ```\n\n         And the contents of /usr/local/bin/meld are:\n\n         arglist = []\n         for arg in sys.argv[1:]:\n             if arg.startswith('--output'):\n                 filename = arg.split('=')[1] ##### <<--------- line 20\n                 newArg = '--output=' + fix_abspath(filename)\n             elif arg.startswith('-'):\n                 newArg = arg\n             else:\n                 newArg = fix_abspath(arg)\n             arglist.append(newArg)\n\n         I'm on OSX: 10.12.4\n\n         git --version\n         git version 2.12.2\n"}]}