@@ -43,7 +43,7 @@ type RepositoryManager interface {
4343 Add (gitCtx GitContext , gitProviderId int , location , url string , authMode sql.AuthMode , sshPrivateKeyContent string ) error
4444 GetSshPrivateKeyPath (gitCtx GitContext , gitProviderId int , location , url string , authMode sql.AuthMode , sshPrivateKeyContent string ) (string , error )
4545 FetchRepo (gitCtx GitContext , location string ) error
46- GetLocationForMaterial (material * sql.GitMaterial , cloningMode string ) (location string , httpMatched bool , shMatched bool , err error )
46+ GetCheckoutLocationFromGitUrl (material * sql.GitMaterial , cloningMode string ) (location string , httpMatched bool , shMatched bool , err error )
4747 GetCheckoutLocation (gitCtx GitContext , material * sql.GitMaterial , url , checkoutPath string ) string
4848 TrimLastGitCommit (gitCommits []* GitCommitBase , count int ) []* GitCommitBase
4949 // Clean cleans a directory
@@ -82,7 +82,7 @@ func (impl *RepositoryManagerImpl) IsSpaceAvailableOnDisk() bool {
8282 return availableSpace > int64 (impl .configuration .MinLimit )* 1024 * 1024
8383}
8484
85- func (impl * RepositoryManagerImpl ) GetLocationForMaterial (material * sql.GitMaterial , cloningMode string ) (location string , httpMatched bool , shMatched bool , err error ) {
85+ func (impl * RepositoryManagerImpl ) GetCheckoutLocationFromGitUrl (material * sql.GitMaterial , cloningMode string ) (location string , httpMatched bool , shMatched bool , err error ) {
8686 //gitRegex := `/(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/`
8787 httpsRegex := `^https.*`
8888 httpsMatched , err := regexp .MatchString (httpsRegex , material .Url )
0 commit comments