git archive: tar.umask ignored
- From
- Jacek Masiulaniec <jacekm@dobremiasto.net>
- Date
- Apr 12, 2011, 09:39 UTC
- Message-ID
- <BANLkTimTs+Qh9fNs6pLcZidYy-YjXNR2iw@mail.gmail.com>
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