mirror of
https://github.com/git/git.git
synced 2024-11-24 02:17:02 +08:00
archive-tar.c: guard config parser from value=NULL
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
b26768e256
commit
cc1816b0d6
@ -222,7 +222,7 @@ static void write_global_extended_header(const unsigned char *sha1)
|
||||
static int git_tar_config(const char *var, const char *value)
|
||||
{
|
||||
if (!strcmp(var, "tar.umask")) {
|
||||
if (!strcmp(value, "user")) {
|
||||
if (value && !strcmp(value, "user")) {
|
||||
tar_umask = umask(0);
|
||||
umask(tar_umask);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user