Skip to content

Commit

Permalink
Also set GIT_ASKPASS for old git versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerun committed Nov 6, 2016
1 parent 851da3e commit 618455d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/core/resolvers/GitResolver.js
Expand Up @@ -27,7 +27,14 @@ function GitResolver(decEndpoint, config, logger) {
mkdirp.sync(config.storage.empty);
process.env.GIT_TEMPLATE_DIR = config.storage.empty;
process.env.GIT_SSL_NO_VERIFY = (!config.strictSsl).toString();
process.env.GIT_TERMINAL_PROMPT = config.interactive ? '1' : '0';

if (!config.interactive) {
process.env.GIT_TERMINAL_PROMPT = '0';

if (!process.env.GIT_ASKPASS) {
process.env.GIT_ASKPASS = which.sync('bower');
}
}

Resolver.call(this, decEndpoint, config, logger);

Expand Down

0 comments on commit 618455d

Please sign in to comment.