git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git attributes are read from head branch instead of given branch when using git archive
@ 2017-03-09 21:02 Aalex Gabi
  2017-03-09 21:45 ` Brandon Williams
  0 siblings, 1 reply; 2+ messages in thread
From: Aalex Gabi @ 2017-03-09 21:02 UTC (permalink / raw)
  To: git

Hello,

git archive --remote="URL" branchname > branchname.tar.gz is not
reading .gitattributes file from the given branch but from HEAD. More
specifically export-ignore lines in the target branch are ignored.

The remote is using git protocol and it's served by Gitlab. I use git
version 2.11.0.

Is this a git issue? In that case is this a bug or a known limitation?

Best regards,
Aalex Gabi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Git attributes are read from head branch instead of given branch when using git archive
  2017-03-09 21:02 Git attributes are read from head branch instead of given branch when using git archive Aalex Gabi
@ 2017-03-09 21:45 ` Brandon Williams
  0 siblings, 0 replies; 2+ messages in thread
From: Brandon Williams @ 2017-03-09 21:45 UTC (permalink / raw)
  To: Aalex Gabi; +Cc: git

On 03/09, Aalex Gabi wrote:
> Hello,
> 
> git archive --remote="URL" branchname > branchname.tar.gz is not
> reading .gitattributes file from the given branch but from HEAD. More
> specifically export-ignore lines in the target branch are ignored.
> 
> The remote is using git protocol and it's served by Gitlab. I use git
> version 2.11.0.
> 
> Is this a git issue? In that case is this a bug or a known limitation?
> 
> Best regards,
> Aalex Gabi

Could you provide a little more context with the problem you are having?
When you say HEAD are you referring to the server's HEAD?

When testing this locally (with a relative URL) I can't seem to
reproduce what you are describing.  If you could provide a way to
reproduce this I would be able to more easily diagnose the problem.

-- 
Brandon Williams

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-03-09 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-09 21:02 Git attributes are read from head branch instead of given branch when using git archive Aalex Gabi
2017-03-09 21:45 ` Brandon Williams

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).