mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
Don't use git templates
This actually throws a warning from git, but is harmless.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user