From: Nguyen Thai Ngoc Duy Date: Sat, 07 Jun 2008 16:19:20 GMT Subject: Re: git-archive and unwanted .gitattributes Message-ID: In-Reply-To: On Sat, Jun 7, 2008 at 10:47 PM, Jakub Narebski wrote: > "Nguyen Thai Ngoc Duy" writes: > >> Currently attr.c will read .gitattributes on disk no matter there is a >> real worktree or not. > > Currently .gitattributes are read _only_ from the work tree. > There isn't even infrastructure to read .gitattributes for commit > (from a tree); git-check-attr, and I guess also internal git API, > deals only with in-tree .gitattribute file. I saw it read from index but forgot that index != tree :( So git-archive + export-subst just does not work as expected. -- Duy