summaryrefslogtreecommitdiff
path: root/src/repository.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-08-22 16:03:35 -0700
committerRussell Belfer <rb@github.com>2012-08-22 16:16:42 -0700
commit85bd17462662905dfdf9247b262480280a616ad4 (patch)
tree88454804c539284aa6cb216943d0a53b7cde211b /src/repository.c
parentb769e936d0118b7c3870ffc082b44254164bfedd (diff)
downloadlibgit2-85bd17462662905dfdf9247b262480280a616ad4.tar.gz
Some cleanup suggested during review
This cleans up a number of items suggested during code review with @vmg, including: * renaming "outside repo" config API to `git_config_open_default` * killing the `git_config_open_global` API * removing the `git_` prefix from the static functions in fileops * removing some unnecessary functionality from the "cp" command
Diffstat (limited to 'src/repository.c')
-rw-r--r--src/repository.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository.c b/src/repository.c
index ebd60360a..8005797b2 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -936,7 +936,7 @@ static int repo_init_structure(
if (opts->template_path)
tdir = opts->template_path;
- else if ((error = git_config_open_outside_repo(&cfg)) < 0)
+ else if ((error = git_config_open_default(&cfg)) < 0)
return error;
else {
error = git_config_get_string(&tdir, cfg, "init.templatedir");