Skip to content

Commit 7b733ac

Browse files
edgardmessiasJohnstonCode
authored andcommitted
fix: Fixed prompts for login constantly (close #552) (#620)
1 parent c036dcc commit 7b733ac

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/svn.ts

+8
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ export class Svn {
9999
args.push("--password", options.password);
100100
}
101101

102+
if (options.username || options.password) {
103+
// Configuration format: FILE:SECTION:OPTION=[VALUE]
104+
// Disable password store
105+
args.push("--config-option", "config:auth:password-stores=");
106+
// Disable store auth credentials
107+
args.push("--config-option", "servers:global:store-auth-creds=no");
108+
}
109+
102110
// Force non interactive environment
103111
args.push("--non-interactive");
104112

0 commit comments

Comments
 (0)