MCPcopy
hub / github.com/iterative/cml / gitRemoteUrl

Function gitRemoteUrl

src/cml.js:49–55  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

47};
48
49const gitRemoteUrl = (opts = {}) => {
50 const { remote = GIT_REMOTE } = opts;
51 const url = gitUrlParse(
52 execSync(`git config --get remote.${remote}.url`).toString('utf8')
53 );
54 return stripAuth(url.toString(url.protocol === 'http' ? 'http' : 'https'));
55};
56
57const inferToken = () => {
58 const {

Callers 1

constructorMethod · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected