Re: [BUG?] git-archive ignores remote .gitattributes (was: .git/info/attributes not cloned)
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Mar 28, 2008, 12:22 UTC
- Message-ID
- <alpine.LSU.1.00.0803281321260.18259@racer.site>
- In-Reply-To
- <47EC7DD1.3060102@rea-group.com>
Hi,
On Fri, 28 Mar 2008, Toby Corkindale wrote:
Show 7 quoted lines
> I submit that this is a bug, or at least undesirable behaviour: > > "git-archive --remote=/some/repo" will ignore /some/repo/.gitattributes, > but check /some/repo/info/attributes. > > I think the problem is in the loop that looks for .gitattributes, which > seems to do so by taking the current path and iterating down through it?
The problem is that "git archive --remote" operates on the remote repository as if it were bare. Which in many cases is true.
So I'd submit that this is not the usage .gitattributes is meant for, and that you should clone the thing if you want to generate archives heeding the .gitattributes.
Ciao, Dscho