diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-11-09 21:49:50 +0100 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-11-09 21:49:50 +0100 |
commit | 55f9837f11cae1d9c56e9f81eba3a3b7553ec8dd (patch) | |
tree | 5722b6c654c5e9e44a198a4dd07507e65a0479be /src | |
parent | 0f674411e9358a9d42ba892e853c6abd2303f296 (diff) | |
download | libgit2-55f9837f11cae1d9c56e9f81eba3a3b7553ec8dd.tar.gz |
config: make git_config_open_level() work with an empty config
Diffstat (limited to 'src')
-rw-r--r-- | src/config.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 033bde425..9945aaed7 100644 --- a/src/config.c +++ b/src/config.c @@ -127,8 +127,6 @@ static int find_internal_file_by_level( file_internal *internal; unsigned int i; - assert(cfg->files.length); - /* when passing GIT_CONFIG_HIGHEST_LEVEL, the idea is to get the config file * which has the highest level. As config files are stored in a vector * sorted by decreasing order of level, getting the file at position 0 |