Git development
 help / color / mirror / Atom feed
From: Matthias Lederhofer <matled@gmx.net>
To: git@vger.kernel.org
Cc: Matthias Lederhofer <matled@gmx.net>
Subject: [PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified
Date: Sat, 27 May 2006 12:25:39 +0200	[thread overview]
Message-ID: <46880.7145757184$1148725551@news.gmane.org> (raw)
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

       reply	other threads:[~2006-05-27 10:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <11487255393905-git-send-email-1>
2006-05-27 10:25 ` Matthias Lederhofer [this message]
2006-05-27 13:25 [PATCH 2/2] make init-db use GIT_TEMPLATE_DIR if --template option is not specified Petr Baudis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='46880.7145757184$1148725551@news.gmane.org' \
    --to=matled@gmx.net \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox