Skip to content

Commit

Permalink
fix: Fixed prompts for login constantly (close #552) (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias authored and JohnstonCode committed Jun 27, 2019
1 parent c036dcc commit 7b733ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/svn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,14 @@ export class Svn {
args.push("--password", options.password);
}

if (options.username || options.password) {
// Configuration format: FILE:SECTION:OPTION=[VALUE]
// Disable password store
args.push("--config-option", "config:auth:password-stores=");
// Disable store auth credentials
args.push("--config-option", "servers:global:store-auth-creds=no");
}

// Force non interactive environment
args.push("--non-interactive");

Expand Down

0 comments on commit 7b733ac

Please sign in to comment.