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

gitk: "argument list too long"

From
CCChris Cowan <cowan@streak.com>
Date
Jun 15, 2015, 18:25 UTC
Message-ID
<CAL_Ays8piaRHk6BxDOBLYbrxoN4wt3bLB0Pt8K6NydOBCi9dzw@mail.gmail.com>

I've recently had an issue where running "gitk --all" has stopped working on a large repository of mine. Gitk's main window appears with all of the sections empty, and a modal tells me 'Error executing git log: couldn't execute "git": argument list too long'.

I'm on OS X, and am running git version 2.4.3 installed via homebrew. "getconf ARG_MAX" tells me that the maximum argument length is 262144 bytes. "git tag|wc -l" tells me that there 5271 tags in the repo, and more are added regularly. I think that's what set it over recently. For now I've worked around the issue by running "gitk --branches" instead.

I searched for other mentions of this issue, and found this issue from I think this same mailing list: http://www.spinics.net/lists/git/msg243731.html . Trying to run "gitk --all" in the chromium git repo (available at https://chromium.googlesource.com/chromium/src.git) gives me the same issue too always as Nicolas reported.

Next: Dean Pulsifer
Message 1 of 2 in “gitk: "argument list too long"”
  1. Chris CowanJun 15, 2015
  2. Dean PulsiferSep 12, 2015

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.