git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git archive: tar.umask ignored

From
JMJacek Masiulaniec <jacek.masiulaniec@gmail.com>
Date
Apr 12, 2011, 20:39 UTC
Message-ID
<BANLkTinEFPZoaUAc+8F1sPGE636u1vDOZw@mail.gmail.com>
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
Previous: René ScharfeNext: René Scharfe
Message 4 of 6 in “git archive: tar.umask ignored”
  1. Jacek MasiulaniecApr 12, 2011
  2. René ScharfeApr 12, 2011
  3. René ScharfeApr 12, 2011
  4. Jacek MasiulaniecApr 12, 2011
  5. René ScharfeApr 14, 2011
  6. Junio C HamanoApr 14, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.