X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=config.c;h=c47497001e172060abdcd08e4a606bec89303232;hb=5e3a620cd5f7baaf27198192a614271c6145ec3b;hp=0248c6d8a58eedff72352022404e765d31adc5de;hpb=8701ea0f627dcba4bb75570f87df9c93985d397a;p=git.git diff --git a/config.c b/config.c index 0248c6d8..c4749700 100644 --- a/config.c +++ b/config.c @@ -269,6 +269,11 @@ int git_default_config(const char *var, const char *value) return 0; } + if (!strcmp(var, "core.logallrefupdates")) { + log_all_ref_updates = git_config_bool(var, value); + return 0; + } + if (!strcmp(var, "core.warnambiguousrefs")) { warn_ambiguous_refs = git_config_bool(var, value); return 0; @@ -531,7 +536,7 @@ int git_config_set_multivar(const char* key, const char* value, * contents of .git/config will be written into it. */ fd = open(lock_file, O_WRONLY | O_CREAT | O_EXCL, 0666); - if (fd < 0) { + if (fd < 0 || adjust_shared_perm(lock_file)) { fprintf(stderr, "could not lock config file\n"); free(store.key); ret = -1;