This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ export interface ISvnConnectionEndpoint {
33
33
username : string ;
34
34
password : string ;
35
35
realmName : string ;
36
+ acceptUntrusted : boolean ;
36
37
url : string ;
37
38
}
38
39
@@ -310,17 +311,19 @@ export class SvnWrapper extends events.EventEmitter {
310
311
// default connection related args
311
312
var usernameArg = '--username' ;
312
313
var passwordArg = '--password' ;
314
+ var trustArg = "--trust-server-cert" ;
313
315
314
316
var defaults : string [ ] = [ ] ;
315
317
316
318
if ( this . endpoint . username && this . endpoint . username . length > 0 ) {
317
- this . ctx . verbose ( "username=" + this . endpoint . username ) ;
318
319
defaults . push ( usernameArg , this . endpoint . username ) ;
319
320
}
320
321
if ( this . endpoint . password && this . endpoint . password . length > 0 ) {
321
- this . ctx . verbose ( "password=" + this . endpoint . password ) ;
322
322
defaults . push ( passwordArg , this . endpoint . password ) ;
323
323
}
324
+ if ( this . endpoint . acceptUntrusted ) {
325
+ defaults . push ( trustArg ) ;
326
+ }
324
327
325
328
var quotedArg = function ( arg ) {
326
329
var quote = '"' ;
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ export class SvnScmProvider extends scmprovider.ScmProvider {
61
61
username : this . username ,
62
62
password : this . password ,
63
63
realmName : this . realmName ,
64
+ acceptUntrusted : this . endpoint . data &&
65
+ this . endpoint . data [ "acceptUntrustedCerts" ] &&
66
+ ( this . endpoint . data [ "acceptUntrustedCerts" ] . toLowerCase ( ) === "true" ) ,
64
67
url : this . endpoint . url
65
68
} ) ;
66
69
}
You can’t perform that action at this time.
0 commit comments