File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ function ConnectionConfig(serverUrl, params) {
19
19
* @type {string }
20
20
*/
21
21
this . server = undefined ;
22
+
23
+ // the base server url without the team name
24
+ this . baseServer = undefined ;
22
25
23
26
// remote auth for authenticating to remote servers for push / fetch / clone
24
27
/** @type {typedef.CredentialObj } */
@@ -229,7 +232,9 @@ ConnectionConfig.prototype.parseServerURL = function (str) {
229
232
230
233
ConnectionConfig . prototype . serverUrlEncoding = function ( str ) {
231
234
const orgArr = str . split ( '/' ) ;
232
- if ( orgArr . length > 3 ) {
235
+ if ( orgArr . length > 4 ) {
236
+ // we can need only the server baseurl
237
+ this . baseServer = str . replace ( `${ orgArr [ 3 ] } /` , '' ) ;
233
238
// const org = encodeURI(orgArr[3])
234
239
/*
235
240
* if we pass the organization name like Francesca-Bit-9e73
@@ -239,6 +244,7 @@ ConnectionConfig.prototype.serverUrlEncoding = function (str) {
239
244
const org = encodeURISegment ( orgArr [ 3 ] ) ;
240
245
return str . replace ( orgArr [ 3 ] , org ) ;
241
246
}
247
+ this . baseServer = str ;
242
248
return str ;
243
249
} ;
244
250
You can’t perform that action at this time.
0 commit comments