git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git archive: tar.umask ignored
@ 2011-04-12  9:39 Jacek Masiulaniec
  2011-04-12 18:19 ` René Scharfe
  0 siblings, 1 reply; 6+ messages in thread
From: Jacek Masiulaniec @ 2011-04-12  9:39 UTC (permalink / raw)
  To: git

Hello git@,

I believe git has an issue with command line override of configuration options.
Notice how in both cases below the file mode is 775 despite tar.umask
difference:

[jacekm@localhost git]$ ./git --version
git version 1.7.4.4
[jacekm@localhost git]$ ./git archive --remote=/repo/website.git HEAD
| tar -tvf - | head -1
drwxrwxr-x root/root         0 2011-04-11 13:47:09 bin/
[jacekm@localhost git]$ ./git -c tar.umask=0022 archive
--remote=/repo/website.git HEAD | tar -tvf - | head -1
drwxrwxr-x root/root         0 2011-04-11 13:47:09 bin/
[jacekm@localhost git]$

In contrast, tweaking tar.umask in ~/.gitconfig does have the desired
impact on the file mode.

Jacek

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

end of thread, other threads:[~2011-04-14 22:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2011-04-14 18:04     ` René Scharfe
2011-04-14 22:57       ` Junio C Hamano

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).