From: Jacek Masiulaniec <jacek.masiulaniec@gmail.com>
To: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
Cc: git@vger.kernel.org
Subject: Re: git archive: tar.umask ignored
Date: Tue, 12 Apr 2011 21:39:48 +0100 [thread overview]
Message-ID: <BANLkTinEFPZoaUAc+8F1sPGE636u1vDOZw@mail.gmail.com> (raw)
In-Reply-To: <4DA497B7.706@lsrfire.ath.cx>
On 12 April 2011 19:19, René Scharfe <rene.scharfe@lsrfire.ath.cx> wrote:
> The local setting of tar.umask does not affect the archive created at the
> remote end. If your "remote" repository is in fact located on the same
> machine and accessed with the same user then of course settings in
> ~/.gitconfig will take effect.
I've eventually realised this by reading the source code. The command
I actually needed was:
cd /repo/website.git && git -c tar.umask=0022 archive HEAD
Can't comment on the proposed diff without getting better handle on
the whole system, but my knee-jerk reaction would be to resist the
urge to add more switches. Maybe the existing -c switch could be made
to cooperate with --remote, or maybe the documentation could be edited
to make it clearer that -c and --remote are not related in the way I
had originally assumed.
Jacek
next prev parent reply other threads:[~2011-04-12 20:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 9:39 git archive: tar.umask ignored Jacek Masiulaniec
2011-04-12 18:19 ` René Scharfe
2011-04-12 20:02 ` René Scharfe
2011-04-12 20:39 ` Jacek Masiulaniec [this message]
2011-04-14 18:04 ` René Scharfe
2011-04-14 22:57 ` Junio C Hamano
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinEFPZoaUAc+8F1sPGE636u1vDOZw@mail.gmail.com \
--to=jacek.masiulaniec@gmail.com \
--cc=git@vger.kernel.org \
--cc=rene.scharfe@lsrfire.ath.cx \
/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.
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 NNTP newsgroup(s).