chore: hardcode fix getFetchUrl
This commit is contained in:
		
							parent
							
								
									1e31de5234
								
							
						
					
					
						commit
						4c8f4bdc40
					
				|  | @ -12,11 +12,11 @@ export function getFetchUrl(settings: IGitSourceSettings): string { | ||||||
|   const encodedOwner = encodeURIComponent(settings.repositoryOwner) |   const encodedOwner = encodeURIComponent(settings.repositoryOwner) | ||||||
|   const encodedName = encodeURIComponent(settings.repositoryName) |   const encodedName = encodeURIComponent(settings.repositoryName) | ||||||
|   if (settings.sshKey) { |   if (settings.sshKey) { | ||||||
|     return `git@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git` |     return `git@${serviceUrl.hostname}:2222/${encodedOwner}/${encodedName}.git` | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   // "origin" is SCHEME://HOSTNAME[:PORT]
 |   // "origin" is SCHEME://HOSTNAME[:PORT]
 | ||||||
|   return `${serviceUrl.origin}/${encodedOwner}/${encodedName}` |   return `${serviceUrl.origin}/git/${encodedOwner}/${encodedName}` | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export function getServerUrl(url?: string): URL { | export function getServerUrl(url?: string): URL { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user