From c6cd0e4162e14633e8003fae779d0c98a20672bf Mon Sep 17 00:00:00 2001 From: richo Date: Sat, 16 Mar 2013 22:37:54 +1100 Subject: [PATCH] Don't use git templates This actually throws a warning from git, but is harmless. --- lib/core/config.js | 1 + lib/util/git-cmd.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/core/config.js b/lib/core/config.js index 28f3874a..f08ca2ad 100644 --- a/lib/core/config.js +++ b/lib/core/config.js @@ -34,6 +34,7 @@ try { cache : path.join(roaming, folder, 'cache'), links : path.join(roaming, folder, 'links'), completion : path.join(roaming, folder, 'completion'), + git_template : path.join(roaming, folder, 'git_template'), json : 'component.json', endpoint : 'https://bower.herokuapp.com', directory : 'components', diff --git a/lib/util/git-cmd.js b/lib/util/git-cmd.js index a530bf54..a125b501 100644 --- a/lib/util/git-cmd.js +++ b/lib/util/git-cmd.js @@ -16,6 +16,7 @@ var rimraf = require('rimraf'); var config = require('../core/config'); module.exports = function (args, options, emitter) { + process.env.GIT_TEMPLATE_DIR = config.git_template; var cp = spawn('git', args, options, emitter); var cwd = options ? options.cwd || process.cwd() : process.cwd(); var isTmp = path.normalize(cwd).indexOf(config.cache) === 0; @@ -25,4 +26,4 @@ module.exports = function (args, options, emitter) { }); return cp; -}; \ No newline at end of file +};