summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-03-11 22:36:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-03-11 23:02:17 (GMT)
commit7875acb6ecf85a7dc29554d193955ce5e265764f (patch)
tree58b24619636ee321eaea313575b92e83dc636f0e /setup.c
parent4b0d1eebe95b8ed187ff06ae46d69d517c2b759f (diff)
downloadgit-7875acb6ecf85a7dc29554d193955ce5e265764f.zip
git-7875acb6ecf85a7dc29554d193955ce5e265764f.tar.gz
git-7875acb6ecf85a7dc29554d193955ce5e265764f.tar.bz2
wrap shared_repository global in get/set accessors
It would be useful to control access to the global shared_repository, so that we can lazily load its config. The first step to doing so is to make sure all access goes through a set of functions. This step is purely mechanical, and should result in no change of behavior. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.c b/setup.c
index b2f2e69..ac777c5 100644
--- a/setup.c
+++ b/setup.c
@@ -377,7 +377,7 @@ static int check_repo_format(const char *var, const char *value, void *cb)
if (strcmp(var, "core.repositoryformatversion") == 0)
repository_format_version = git_config_int(var, value);
else if (strcmp(var, "core.sharedrepository") == 0)
- shared_repository = git_config_perm(var, value);
+ set_shared_repository(git_config_perm(var, value));
else if (skip_prefix(var, "extensions.", &ext)) {
/*
* record any known extensions here; otherwise,