diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-06-18 01:17:58 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-06-18 01:17:58 +0200 |
| commit | 920e000d38c5514499a5f0236fdfe11f3b14d9b1 (patch) | |
| tree | 7c7290256a11a536b3330602f210e3f2ac02379f /examples/general.c | |
| parent | dbe70bd5c3f803dbcb9fe4880df11cf08093b120 (diff) | |
| download | libgit2-920e000d38c5514499a5f0236fdfe11f3b14d9b1.tar.gz | |
config: Update examples
Diffstat (limited to 'examples/general.c')
| -rw-r--r-- | examples/general.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/general.c b/examples/general.c index 1900f4894..dbecbd206 100644 --- a/examples/general.c +++ b/examples/general.c @@ -425,7 +425,7 @@ int main (int argc, char** argv) git_config *cfg; // Open a config object so we can read global values from it. - git_config_open_global(&cfg); + git_config_open_ondisk(&cfg, "~/.gitconfig"); git_config_get_int(cfg, "help.autocorrect", &j); printf("Autocorrect: %d\n", j); |
