Skip to content

Commit

Permalink
Don't ask for git credentials in non-interactive session
Browse files Browse the repository at this point in the history
This is done by setting GIT_TERMINAL_PROMPT variable

- fixes #956
- fixes #1009
  • Loading branch information
sheerun committed Apr 4, 2016
1 parent c2e0dc9 commit aaaa9cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/core/resolvers/GitResolver.js
Expand Up @@ -27,6 +27,7 @@ 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';

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

Expand Down

0 comments on commit aaaa9cd

Please sign in to comment.