diff --git a/config.c b/config.c index bbc5d34e5a..977115a6e9 100644 --- a/config.c +++ b/config.c @@ -436,7 +436,7 @@ int git_config_from_file(config_fn_t fn, const char *filename) int ret; FILE *f = fopen(filename, "r"); - ret = -1; + ret = 1; if (f) { config_file = f; config_file_name = filename;