lazily load core.sharedrepository
[gitweb.git] / setup.c
diff --git a/setup.c b/setup.c
index de1a2a7ea5973fef256328a26730117466c15172..a02932b9698945e04d7a36582f7b5c4bd9fc9268 100644 (file)
--- a/setup.c
+++ b/setup.c
@@ -376,8 +376,6 @@ 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);
        else if (skip_prefix(var, "extensions.", &ext)) {
                /*
                 * record any known extensions here; otherwise,
@@ -982,9 +980,9 @@ int check_repository_format_version(const char *var, const char *value, void *cb
        return 0;
 }
 
-int check_repository_format(void)
+void check_repository_format(void)
 {
-       return check_repository_format_gently(get_git_dir(), NULL);
+       check_repository_format_gently(get_git_dir(), NULL);
 }
 
 /*