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

git difftool: No such file or directory

From
ABAlan Blotz <work@blotz.org>
Date
Jun 30, 2021, 09:38 UTC
Message-ID
<176caa21-0232-9f21-7a8d-af136754e354@blotz.org>

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

mkdir broken-diff cd broken-diff git init mkdir dir1 mkdir dir2 touch dir1/orig cd dir2/ ln -s ../dir1/orig sym cd .. git add dir* git ci -m "init" git checkout -b b git rm dir2/sym git ci -m "remove" git difftool -d master HEAD

What did you expect to happen? (Expected behavior)
git difftool shall compare both branches.
What happened instead? (Actual behavior)
git difftool prints an error:
fatal: could not open '/tmp/git-difftool.l4UM7e/left/dir2/sym' for writing: No such file or directory

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.31.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.12.12-300.fc34.x86_64 #1 SMP Fri Jun 18 14:30:51 UTC 2021 x86_64 compiler info: gnuc: 11.0 libc info: glibc: 2.33 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]
Next: Đoàn Trần Công Danh
Message 1 of 3 in “git difftool: No such file or directory”
  1. Alan BlotzJun 30, 2021
  2. Đoàn Trần Công DanhJul 1, 2021
  3. David AguilarAug 30, 2021

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.