diff --git a/builtin-init-db.c b/builtin-init-db.c
index 5ba213a595fb9d7de4d36ff5cab888bde2035722..baf0d09ac4ea372b4015d399560a133b401b55cc 100644 (file)
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
template_dir = getenv(TEMPLATE_DIR_ENVIRONMENT);
if (!template_dir)
template_dir = system_path(DEFAULT_GIT_TEMPLATE_DIR);
+ if (!template_dir[0])
+ return;
strcpy(template_path, template_dir);
template_len = strlen(template_path);
if (template_path[template_len-1] != '/') {
}
static const char init_db_usage[] =
-"git-init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]]";
+"git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]]";
/*
* If you want to, you can share the DB area with any number of branches.