Lines Matching refs:url
29 const info = hostedGitInfo.fromUrl(r.url)
30 const url = info ? info.browse() : unknownHostedUrl(r.url)
32 if (!url) return cb(new Error('no repository: could not get url'))
34 openUrl(url, 'repository available at the following URL', cb)
37 function unknownHostedUrl (url) { argument
39 const idx = url.indexOf('@')
41 url = url.slice(idx + 1).replace(/:([^\d]+)/, '/$1')
43 url = url_.parse(url)
44 const protocol = url.protocol === 'https:'
47 return protocol + '//' + (url.host || '') +
48 url.path.replace(/\.git$/, '')