From: Junio C Hamano Date: Wed, 08 Jul 2009 22:48:15 GMT Subject: Re: "fatal: index-pack failed" on git-clone Message-ID: <7vvdm26bbk.fsf@alter.siamese.dyndns.org> In-Reply-To: <200907082242.51495.j6t@kdbg.org> Johannes Sixt writes: > However, if Fritz runs 'sudo /usr/local/bin/git clone ...', then the interim > PATH is "/usr/local/bin:/usr/local/libexec/git-core:/bin:/usr/bin" because > this time setup_path() finds a non-empty argv0_path, and the command works. Ahh, that is what I was missing. As I said elsewhere already, I personally do not think sudo is worth supporting compared to the cost of this kind of pain resulting from its misguided "safety" brokenness, but apparently it is widely used. I think what Peff suggests in this thread might be a reasonable workaround.