Revert "Returning -1 does not fail like it should in MSys."

This reverts commit 327005a9ef.

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 <prohaska@zib.de>
This commit is contained in:
Steffen Prohaska
2007-11-03 18:01:31 +01:00
parent 69cadd4e60
commit 5f50b3edfa

View File

@@ -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;