MCPcopy Create free account
hub / github.com/cocos/cocos-engine / updateOriginUrl

Function updateOriginUrl

native/utils/git.js:408–411  ·  view source on GitHub ↗
(path, newRemote, cb)

Source from the content-addressed store, hash-verified

406}
407
408function updateOriginUrl(path, newRemote, cb) {
409 var newUrl = 'git@github.com:' + newRemote + '/' + Path.basename(path);
410 exec(['remote', 'set-url', 'origin', newUrl], path, cb);
411}
412
413module.exports = {
414 exec: exec,

Callers

nothing calls this directly

Calls 2

execFunction · 0.85
basenameMethod · 0.45

Tested by

no test coverage detected