File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/server/src/utils/providers Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -90,12 +90,14 @@ const getGitlabRepoClone = (
9090 gitlab : GitlabInfo ,
9191 gitlabPathNamespace : string | null ,
9292) => {
93- const repoClone = `${ gitlab ?. gitlabUrl . replace ( / ^ h t t p s ? : \/ \/ / , "" ) } /${ gitlabPathNamespace } .git` ;
93+ const url = gitlab ?. gitlabInternalUrl || gitlab ?. gitlabUrl ;
94+ const repoClone = `${ url ?. replace ( / ^ h t t p s ? : \/ \/ / , "" ) } /${ gitlabPathNamespace } .git` ;
9495 return repoClone ;
9596} ;
9697
9798const getGitlabCloneUrl = ( gitlab : GitlabInfo , repoClone : string ) => {
98- const isSecure = gitlab ?. gitlabUrl . startsWith ( "https://" ) ;
99+ const url = gitlab ?. gitlabInternalUrl || gitlab ?. gitlabUrl ;
100+ const isSecure = url ?. startsWith ( "https://" ) ;
99101 const cloneUrl = `http${ isSecure ? "s" : "" } ://oauth2:${ gitlab ?. accessToken } @${ repoClone } ` ;
100102 return cloneUrl ;
101103} ;
You can’t perform that action at this time.
0 commit comments