git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Brandon Williams <bmwill@google.com>
To: Aalex Gabi <aalexgabi@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Git attributes are read from head branch instead of given branch when using git archive
Date: Thu, 9 Mar 2017 13:45:45 -0800	[thread overview]
Message-ID: <20170309214545.GA52558@google.com> (raw)
In-Reply-To: <CABRdPwCA6UR0kkZ2T8W4OYZ36oBwF9hw+SpJHXDE15CHyFiA8A@mail.gmail.com>

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

      reply	other threads:[~2017-03-09 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170309214545.GA52558@google.com \
    --to=bmwill@google.com \
    --cc=aalexgabi@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).