Skip to content

Commit

Permalink
Merge branch 'pb/config' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
Junio C Hamano committed Jun 20, 2006
2 parents 592689c + e33d061 commit 9e37f72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions repo-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ static int get_value(const char* key_, const char* regex_)
const char *home = getenv("HOME");
local = getenv("GIT_CONFIG_LOCAL");
if (!local)
local = repo_config;
else
local = repo_config = strdup(git_path("config"));
if (home)
global = strdup(mkpath("%s/.gitconfig", home));
Expand Down

0 comments on commit 9e37f72

Please sign in to comment.