I’m using git with Kaleidoscope configured as the difftool. It’s been working fine for months. It was working a day or two ago as well. Today, when I tried doing a “git difftool”, suddenly, git reports
fatal: unable to create temp-file: No such file or directory
Searching around on google suggested that this might be a directory permission problem in the local git repo. But the situation did not improve even after a recursive chown on the git repo.
Git-difftool documentation does not mention where it might be trying to create this temp file. Does anybody have any ideas on how to find this out?
As I commented, this kind of message depends usually on the value of the environment variable
$TMPDIR.In the OP’s case:
Restoring
$TMPDIRto a “sane” value (like/tmpor other MacOs-specific localtion) should fix the issue.