# Bug report: git add . -p "Argument list too long"

2 messages from 2014-03-31 to 2014-03-31. Participants: Dieter Komendera, Philip Oakley.
Thread: https://gitlist.dev/t/36323

## Dieter Komendera, 2014-03-31 21:04

Subject: Bug report: git add . -p "Argument list too long"
Message-ID: <2893758C-2196-4A0F-8FD7-69C13B1EDBA4@komendera.com>
URL: https://gitlist.dev/e/2893758C-2196-4A0F-8FD7-69C13B1EDBA4%40komendera.com

```
Hi there,

since a while when I want to stage diffs in one of my big repos with "git add . -p” I get this error:

Can't exec "git": Argument list too long at /usr/local/Cellar/git/1.9.1/libexec/git-core/git-add--interactive line 180.
Died at /usr/local/Cellar/git/1.9.1/libexec/git-core/git-add--interactive line 180.

Mac OS X 10.9.2
git 1.9.1 (installed via homebrew)

I’ve also tried the latest versions of the 1.7 and 1.8 branches which also yielded the same error in that repo.
git add . -p works fine in other (smaller) repos. Unfortunately I’m not able to share this private repo.

I found this rather old posting in the mailing list archive, unfortunately the link to the "quick and easy fix” looks dead:
http://article.gmane.org/gmane.comp.version-control.git/142863/match=argument+list+too+long+git+add

Anybody can help?

Thanks,
Dieter

```

## Philip Oakley, 2014-03-31 21:38

Subject: Re: Bug report: git add . -p "Argument list too long"
Message-ID: <451827DDA9B84629BB261BE933029561@PhilipOakley>
URL: https://gitlist.dev/e/451827DDA9B84629BB261BE933029561%40PhilipOakley
In-Reply-To: <2893758C-2196-4A0F-8FD7-69C13B1EDBA4@komendera.com>

```
----- Original Message ----- 
From: "Dieter Komendera" <dieter@komendera.com>
To: <git@vger.kernel.org>
Sent: Monday, March 31, 2014 10:04 PM
Subject: Bug report: git add . -p "Argument list too long"


> Hi there,
>
> since a while when I want to stage diffs in one of my big repos with 
> "git add . -p” I get this error:
>
> Can't exec "git": Argument list too long at 
> /usr/local/Cellar/git/1.9.1/libexec/git-core/git-add--interactive line 
> 180.
> Died at 
> /usr/local/Cellar/git/1.9.1/libexec/git-core/git-add--interactive line 
> 180.
>
> Mac OS X 10.9.2
> git 1.9.1 (installed via homebrew)
>
> I’ve also tried the latest versions of the 1.7 and 1.8 branches which 
> also yielded the same error in that repo.
> git add . -p works fine in other (smaller) repos. Unfortunately I’m 
> not able to share this private repo.
>
> I found this rather old posting in the mailing list archive, 
> unfortunately the link to the "quick and easy fix” looks dead:
> http://article.gmane.org/gmane.comp.version-control.git/142863/match=argument+list+too+long+git+add
>
> Anybody can help?
>
> Thanks,
> Dieter
>
http://article.gmane.org/gmane.comp.version-control.git/136157 maybe? 

```
