(url)
| 235 | * @returns |
| 236 | */ |
| 237 | const parsePlainGitURL = (url) => { |
| 238 | const branch = 'master' |
| 239 | const downloadUrl = url |
| 240 | const isSubdirectory = false |
| 241 | const repo = url.match(/.+\/(.+)\.git/)[1] |
| 242 | return { |
| 243 | repo, |
| 244 | branch, |
| 245 | downloadUrl, |
| 246 | isSubdirectory, |
| 247 | username: url.username || '', |
| 248 | password: url.password || '', |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | /** |
| 253 | * Parse URL |
no outgoing calls
no test coverage detected
searching dependent graphs…