mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 18:18:37 +08:00 
			
		
		
		
	Update src/url-helper.ts
Co-authored-by: Josh Gross <joshmgross@github.com>
This commit is contained in:
		
							parent
							
								
									a65c1f84e9
								
							
						
					
					
						commit
						e0908c08dc
					
				|  | @ -12,7 +12,7 @@ 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) { | ||||||
|     let user = settings.sshUser.length > 0 ? settings.sshUser : 'git' |     const user = settings.sshUser.length > 0 ? settings.sshUser : 'git' | ||||||
|     return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git` |     return `${user}@${serviceUrl.hostname}:${encodedOwner}/${encodedName}.git` | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Cory Miller
						Cory Miller