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

git version 2.20.1.windows.1 throws file name too long in gitk

From
Bret Barkelew <bret@corthon.com>
Date
Jan 4, 2019, 02:21 UTC
Message-ID
<CAGTkKag2sFy+Of=6uQeiGOQm0-NBrh9ixgzDoQXKR73+Ct3raQ@mail.gmail.com>

When I open gitk in a particular repository under this version of Git for Windows, I now get a dialog box that says "Error: couldn't execute "git": file name too long". I've noticed that the most pronounced effect is that I cannot see the file diffs (or sometimes the file name list) for any of the commits. I don't know the exact repro, but I've narrowed down the following things:

- This does not happen with the same repo if I use a system that has
git 2.19.0.windows.1 on another machine.
- This does not happen on my current machine in a freshly cloned repo.
However, as soon as the remote updates with any changes on a given
fetch/pull, the repo is put in a bad state permanently.
I've pasted the output from gitk below...
couldn't execute "git": file name too long
couldn't execute "git": file name too long
    while executing
"open $cmd r"
    (procedure "getallcommits" line 48)
    invoked from within
"getallcommits"
    (procedure "readcache" line 80)
    invoked from within
"readcache file827e200"
    ("eval" body line 1)
    invoked from within
"eval $script"
    (procedure "dorunq" line 11)
    invoked from within
"dorunq"
    ("after" script)
Happy to gather whatever data needed.
Thanks!
- Bret Barkelew
Next: Bret Barkelew
Message 1 of 10 in “git version 2.20.1.windows.1 throws file name too long in gitk”
  1. Bret BarkelewJan 4, 2019
  2. Bret BarkelewJan 4, 2019
  3. Johannes SchindelinJan 9, 2019
  4. Bret BarkelewJan 9, 2019
  5. Johannes SchindelinJan 10, 2019
  6. Bret BarkelewJan 10, 2019
  7. Bret BarkelewApr 18, 2019
  8. Johannes SchindelinApr 27, 2019
  9. Bret BarkelewMay 29, 2019
  10. Johannes SchindelinMay 29, 2019

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.