{"thread":{"id":"34155","subject":"[PATCH 2/2] pack-refs.c: Add missing call to git_config()","startedAt":"2013-06-15T20:30:00Z","lastAt":"2013-06-15T20:30:00Z","messageCount":1,"participants":["Ramsay Jones"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"220963","messageId":"51BCCEC8.5000803@ramsay1.demon.co.uk","threadId":"34155","inReplyTo":null,"subject":"[PATCH 2/2] pack-refs.c: Add missing call to git_config()","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2013-06-15T20:30:00Z","receivedAt":"2013-06-15T20:30:00Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nAt present, 'git pack-refs' ignores any attempt to set config\nvariables (e.g. core.checkstat) from the command line using\nthe -c option to git. In order to enable such usage, add the\nmissing call to git_config() from cmd_pack_refs().\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n builtin/pack-refs.c | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/builtin/pack-refs.c b/builtin/pack-refs.c\nindex b20b1ec..ade1ae5 100644\n--- a/builtin/pack-refs.c\n+++ b/builtin/pack-refs.c\n@@ -15,6 +15,9 @@ int cmd_pack_refs(int argc, const char **argv, const char *prefix)\n \t\tOPT_BIT(0, \"prune\", &flags, N_(\"prune loose refs (default)\"), PACK_REFS_PRUNE),\n \t\tOPT_END(),\n \t};\n+\n+\tgit_config(git_default_config, NULL);\n+\n \tif (parse_options(argc, argv, prefix, opts, pack_refs_usage, 0))\n \t\tusage_with_options(pack_refs_usage, opts);\n \treturn pack_refs(flags);\n-- \n1.8.3\n"}]}