Re: Cannot clone redirecting stdout
- From
Stefan Naewe <stefan.naewe@atlas-elektronik.com>
- Date
- Sep 11, 2009, 07:27 UTC
- Message-ID
- <4AA9FBD3.5040404@atlas-elektronik.com>
- In-Reply-To
- <4AA9F0A2.6050105@atlas-elektronik.com>
On 9/11/2009 8:39 AM, Stefan Naewe wrote:
Show 28 quoted lines
> On 9/11/2009 12:33 AM, Aloisio wrote: >> Hi all, >> >> I faced a problem when trying to clone git://gitorious.org/qt/qt.git >> >> this works: >> git clone -n git://gitorious.org/qt/qt.git repo >> >> this doesn't: >> git clone -n git://gitorious.org/qt/qt.git repo >log >> fatal: The remote end hung up unexpectedly >> fatal: early EOF >> fatal: index-pack failed >> >> I reproduced the error in the following versions: >> git version 1.6.0.4 >> git version 1.6.4.2 >> git version 1.5.4.7 >> >> Any clues? >> Thanks > > I'd say: > > Take a look at /proc/<pid-of-git>/fd > > fd 0 (stdout) is linked through a pipe to 'git index-pack'. > Redirecting this link breaks everything.
stdout is of course fd 1 ;-)
Regards, Stefan
-- /dev/random says: Never trust a computer you can't lift. - Stan Masor