{"thread":{"id":"4306","subject":"[PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified","startedAt":"2006-05-27T10:25:39Z","lastAt":"2006-05-27T10:25:39Z","messageCount":1,"participants":["Matthias Lederhofer"],"isPatch":true,"patchVersion":1,"patchTotal":2},"messages":[{"id":"20788","messageId":"46880.7145757184$1148725551@news.gmane.org","threadId":"4306","inReplyTo":"11487255393905-git-send-email-1","subject":"[PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified","fromName":"Matthias Lederhofer","fromEmail":"matled@gmx.net","sentAt":"2006-05-27T10:25:39Z","receivedAt":"2006-05-27T10:25:39Z","isPatch":true,"sender":{"key":"matled@gmx.net","avatar":null},"body":"---\n\nf61e19360f9b5965dda1ae762ffdab8ede860430\n builtin-init-db.c |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\nf61e19360f9b5965dda1ae762ffdab8ede860430\ndiff --git a/builtin-init-db.c b/builtin-init-db.c\nindex 2a1384c..cf5bd39 100644\n--- a/builtin-init-db.c\n+++ b/builtin-init-db.c\n@@ -253,6 +253,9 @@ int cmd_init_db(int argc, const char **a\n \t\t\tdie(init_db_usage);\n \t}\n \n+\tif (!template_dir)\n+\t\ttemplate_dir = getenv(\"GIT_TEMPLATE_DIR\");\n+\n \t/*\n \t * Set up the default .git directory contents\n \t */\n-- \n1.3.3.g40505\n"}]}