MCPcopy Index your code
hub / github.com/serverless/serverless / parsePlainGitURL

Function parsePlainGitURL

packages/sf-core/src/utils/https/index.js:237–250  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

235 * @returns
236 */
237const 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

Callers 1

parseRepoURLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…