Skip to contentSkip to conversation

make init-db use GIT_TEMPLATE_DIR if --template option is not specified

PATCH New Matthias Lederhofer 1 participant 1 message Jun 15, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

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

In reply to a message not in the archive

---

f61e19360f9b5965dda1ae762ffdab8ede860430

 builtin-init-db.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

f61e19360f9b5965dda1ae762ffdab8ede860430

builtin-init-db.c +3 -0
index 2a1384c..cf5bd39 100644
@@ -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
 	 */
Signature · 1 line
1.3.3.g40505