diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-06-11 11:33:13 +0200 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-06-12 06:42:46 +0200 |
commit | 7623b1b63f787e7d8a4354db3a0a75d7b6039bf5 (patch) | |
tree | 9b927a5810cb663b5c9d116f6c5b010e163ff3da /src | |
parent | 976b69bdbbd2a84684d5120ac738132ebcd7a532 (diff) | |
download | libgit2-7623b1b63f787e7d8a4354db3a0a75d7b6039bf5.tar.gz |
repository: make git_repository_init() value the core.logallrefupdates config entry
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c index 718170839..4e467e689 100644 --- a/src/repository.c +++ b/src/repository.c @@ -718,6 +718,9 @@ static int repo_init_config(const char *git_dir, bool is_bare, bool is_reinit) SET_REPO_CONFIG(int32, "core.repositoryformatversion", GIT_REPO_VERSION); SET_REPO_CONFIG(bool, "core.filemode", is_chmod_supported(git_buf_cstr(&cfg_path))); + if (!is_bare) + SET_REPO_CONFIG(bool, "core.logallrefupdates", true); + if (!is_reinit && is_filesystem_case_insensitive(git_dir)) SET_REPO_CONFIG(bool, "core.ignorecase", true); /* TODO: what other defaults? */ |