diff options
Diffstat (limited to 'repo-settings.c')
-rw-r--r-- | repo-settings.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/repo-settings.c b/repo-settings.c index b93e91a212..00ca5571a1 100644 --- a/repo-settings.c +++ b/repo-settings.c @@ -17,6 +17,9 @@ void prepare_repo_settings(struct repository *r) char *strval; int manyfiles; + if (!r->gitdir) + BUG("Cannot add settings for uninitialized repository"); + if (r->settings.initialized++) return; |