提交 e33d0611 编写于 作者: J Johannes Schindelin 提交者: Junio C Hamano

git_config: access() returns 0 on success, not > 0

Another late-night bug. Sorry again.
Signed-off-by: NJohannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 92a28be0
......@@ -335,7 +335,7 @@ int git_config(config_fn_t fn)
if (home) {
char *user_config = strdup(mkpath("%s/.gitconfig", home));
if (access(user_config, R_OK) > 0)
if (!access(user_config, R_OK))
ret = git_config_from_file(fn, user_config);
free(user_config);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册