{"thread":{"id":"45333","subject":"Git attributes are read from head branch instead of given branch when using git archive","startedAt":"2017-03-09T21:02:50Z","lastAt":"2017-03-09T21:45:53Z","messageCount":2,"participants":["Aalex Gabi","Brandon Williams"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"313678","messageId":"CABRdPwCA6UR0kkZ2T8W4OYZ36oBwF9hw+SpJHXDE15CHyFiA8A@mail.gmail.com","threadId":"45333","inReplyTo":null,"subject":"Git attributes are read from head branch instead of given branch when using git archive","fromName":"Aalex Gabi","fromEmail":"aalexgabi@gmail.com","sentAt":"2017-03-09T21:02:09Z","receivedAt":"2017-03-09T21:02:50Z","isPatch":false,"sender":{"key":"aalexgabi@gmail.com","avatar":null},"body":"Hello,\n\ngit archive --remote=\"URL\" branchname > branchname.tar.gz is not\nreading .gitattributes file from the given branch but from HEAD. More\nspecifically export-ignore lines in the target branch are ignored.\n\nThe remote is using git protocol and it's served by Gitlab. I use git\nversion 2.11.0.\n\nIs this a git issue? In that case is this a bug or a known limitation?\n\nBest regards,\nAalex Gabi\n"},{"id":"313684","messageId":"20170309214545.GA52558@google.com","threadId":"45333","inReplyTo":"CABRdPwCA6UR0kkZ2T8W4OYZ36oBwF9hw+SpJHXDE15CHyFiA8A@mail.gmail.com","subject":"Re: Git attributes are read from head branch instead of given branch when using git archive","fromName":"Brandon Williams","fromEmail":"bmwill@google.com","sentAt":"2017-03-09T21:45:45Z","receivedAt":"2017-03-09T21:45:53Z","isPatch":false,"sender":{"key":"bwilliams.eng@gmail.com","avatar":null},"body":"On 03/09, Aalex Gabi wrote:\n> Hello,\n> \n> git archive --remote=\"URL\" branchname > branchname.tar.gz is not\n> reading .gitattributes file from the given branch but from HEAD. More\n> specifically export-ignore lines in the target branch are ignored.\n> \n> The remote is using git protocol and it's served by Gitlab. I use git\n> version 2.11.0.\n> \n> Is this a git issue? In that case is this a bug or a known limitation?\n> \n> Best regards,\n> Aalex Gabi\n\nCould you provide a little more context with the problem you are having?\nWhen you say HEAD are you referring to the server's HEAD?\n\nWhen testing this locally (with a relative URL) I can't seem to\nreproduce what you are describing.  If you could provide a way to\nreproduce this I would be able to more easily diagnose the problem.\n\n-- \nBrandon Williams\n"}]}