git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified

From
MLMatthias Lederhofer <matled@gmx.net>
Date
May 27, 2006, 10:25 UTC
Message-ID
<46880.7145757184$1148725551@news.gmane.org>
In-Reply-To
<11487255393905-git-send-email-1>
---
f61e19360f9b5965dda1ae762ffdab8ede860430
 builtin-init-db.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
f61e19360f9b5965dda1ae762ffdab8ede860430
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 2a1384c..cf5bd39 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -253,6 +253,9 @@ int cmd_init_db(int argc, const char **a
 			die(init_db_usage);
 	}
 
+	if (!template_dir)
+		template_dir = getenv("GIT_TEMPLATE_DIR");
+
 	/*
 	 * Set up the default .git directory contents
 	 */
-- 
1.3.3.g40505
Message 1 of 1 in “make init-db use GIT_TEMPLATE_DIR if --template option is not specified”
  1. 2/2 make init-db use GIT_TEMPLATE_DIR if --template option is not specifiedMatthias Lederhofer, May 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.