mirror of
				https://github.com/scm-manager/scm-manager.git
				synced 2025-10-31 10:35:56 +01:00 
			
		
		
		
	fix missing checkout/clone description on repository information page
This commit is contained in:
		| @@ -1,5 +1,6 @@ | ||||
| //@flow | ||||
| import React from "react"; | ||||
| import { repositories } from "@scm-manager/ui-components"; | ||||
| import type { Repository } from "@scm-manager/ui-types"; | ||||
|  | ||||
| type Props = { | ||||
| @@ -10,14 +11,15 @@ class ProtocolInformation extends React.Component<Props> { | ||||
|  | ||||
|   render() { | ||||
|     const { repository } = this.props; | ||||
|     if (!repository._links.httpProtocol) { | ||||
|     const href = repositories.getProtocolLinkByType(repository, "http"); | ||||
|     if (!href) { | ||||
|       return null; | ||||
|     } | ||||
|     return ( | ||||
|       <div> | ||||
|         <h4>Checkout the repository</h4> | ||||
|         <pre> | ||||
|           <code>svn checkout {repository._links.httpProtocol.href}</code> | ||||
|           <code>svn checkout {href}</code> | ||||
|         </pre> | ||||
|       </div> | ||||
|     ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user