Git difftool 问题:无法创建临时文件
我使用 git 和 Kaleidscope 配置为 difftool。几个月以来一直运行良好。一两天前它也在工作。今天,当我尝试执行“git difftool”时,突然,git 报告
fatal: unable to create temp-file: No such file or directory
在 google 上搜索表明这可能是本地 git 存储库中的目录权限问题。但即使在 git repo 上进行递归 chown 之后,情况也没有改善。
Git-difftool 文档没有提及它可能尝试创建此临时文件的位置。有人对如何找到这个有任何想法吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
正如我所评论的,这种消息通常取决于环境变量
$TMPDIR
的值。在OP的情况下:
将
$TMPDIR
恢复为“正常”值(例如/tmp
或其他 MacO 特定区域)应该可以解决该问题。As I commented, this kind of message depends usually on the value of the environment variable
$TMPDIR
.In the OP's case:
Restoring
$TMPDIR
to a "sane" value (like/tmp
or other MacOs-specific localtion) should fix the issue.