(repoPath: string)
| 98 | } |
| 99 | |
| 100 | export const getRepoIdFromPath = (repoPath: string): number | undefined => { |
| 101 | const id = parseInt(path.basename(repoPath), 10); |
| 102 | return isNaN(id) ? undefined : id; |
| 103 | } |
| 104 | |
| 105 | export const getRepoPath = (repo: Repo): { path: string, isReadOnly: boolean } => { |
| 106 | // If we are dealing with a local repository, then use that as the path. |
no outgoing calls
no test coverage detected