From 5f50b3edfa54d04fb751dc847687541a4c611f7c Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sat, 3 Nov 2007 18:01:31 +0100 Subject: [PATCH] Revert "Returning -1 does not fail like it should in MSys." This reverts commit 327005a9ef9c3b784e4742cece0710de6a549313. git-config should print a message and exit with error if --file is used and the file provided does not exist. This was not the case. The problem was introduced by the reverted commit. Signed-off-by: Steffen Prohaska --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index 0badbeb62e..edea061892 100644 --- a/config.c +++ b/config.c @@ -443,7 +443,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;