summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 92a28be)
raw | patch | inline | side by side (parent: 92a28be)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 20 Jun 2006 07:51:09 +0000 (09:51 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Jun 2006 08:21:53 +0000 (01:21 -0700) |
Another late-night bug. Sorry again.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
config.c | patch | blob | history |
diff --git a/config.c b/config.c
index d064f429cb4369ac08f7ad267b0b182112462b16..3e077d4c6ca4f7162e3a3254e1b3e90db33270ff 100644 (file)
--- a/config.c
+++ b/config.c
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);
}