summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repository.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/repository.c b/repository.c
index 8e60af1d5f..c0e0e0e7e7 100644
--- a/repository.c
+++ b/repository.c
@@ -4,7 +4,9 @@
#include "submodule-config.h"
/* The main repository */
-static struct repository the_repo;
+static struct repository the_repo = {
+ NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, &the_index, 0, 0
+};
struct repository *the_repository = &the_repo;
static char *git_path_from_env(const char *envvar, const char *git_dir,