On Fri, Apr 1, 2011 at 4:41 AM, Junio C Hamano <gitster@xxxxxxxxx> wrote: > Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> writes: > >> On Wed, Mar 30, 2011 at 8:01 PM, Jakob Pfender <jpfender@xxxxxxxxxxxxx> wrote: >>> 8dcf39 (Prevent bogus paths from being added to the index) introduced a >>> check for files beginning with '.', preventing path names such as >>> `./file`, `dir/./file` or `dir/../file` from being added. This was >>> reflected in the man page. >>> >>> d089eba (setup: sanitize absolute and funny paths in get_pathspec()) >>> removed this check without reflecting the change in the man page. >> >> Sounds good. > > When I first read it, however, I thought that the "removal" meant that the > rewrite made the code riskier by accepting nonsense, which turns out not > to be what the author meant. ÂIt was more like "instead of rejecting, > accept these paths after normalizing", no? > Yes it's more like that. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html