From: Nguyen Thai Ngoc Duy Date: Mon, 21 Mar 2011 11:19:09 GMT Subject: Re: PATH_MAX (Re: [PATCH] system_path: use a static buffer) Message-ID: In-Reply-To: <20110318113818.GA6049@elie> On Fri, Mar 18, 2011 at 6:38 PM, Jonathan Nieder wrote: > It is indeed possible to have paths with length longer than that.  The > way to support that is to use relative paths wherever possible, which > does sound to me like an interesting long-term goal (mostly because I > suspect the result would be easier to read and, especially, to reason > about with respect to race conditions). A shorter-term goal is to set a path limit config on trees inside the repo, so people on Linux won't accidentally make paths longer than the limit their Windows fellows have. I think it would be easy to do the check around index (old trees in repo are left alone, inspecting history does not have such a limit). -- Duy