Re: "Argument list too long" in git remote update (Was: Git and GCC)
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Dec 17, 2007, 23:01 UTC
- Message-ID
- <alpine.LFD.0.9999.0712171455220.21557@woody.linux-foundation.org>
- In-Reply-To
- <37BDCA73-4318-4BC8-9CCE-1DA30E4A09FC@adacore.com>
On Mon, 17 Dec 2007, Geert Bosch wrote:
Show 5 quoted lines
> > With git version 1.5.3.6 on Mac OS X, this results in: > potomac%:~/gcc%git remote update > Updating gcc.gnu.org > /opt/git/bin/git-fetch: line 220: /opt/git/bin/git: Argument list too long
Oops.
> Any ideas on what to do to resolve this?
Can you try the current git tree? "git fetch" is built-in these days, and that old shell-script that ran "git fetch--tool" on all the refs is no more, so most likely the problem simply no longer exists.
But maybe there is some way to raise the argument size limit on OS X. One thing to check is whether maybe you have an excessively big environment (just run "printenv" to see what it contains) which might be cutting down on the size allowed for arguments.
Linus