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

Function checkoutTrack

native/utils/git.js:180–182  ·  view source on GitHub ↗
( branch, repo, callback)

Source from the content-addressed store, hash-verified

178}
179
180function checkoutTrack( branch, repo, callback) {
181 exec(['checkout', '-B', branch, '--track', 'fireball/' + branch], repo, callback, { autoRetry: true, timeout: 30000, autoKill: false } );
182}
183
184// 检查 git 的错误信息,看看是否可以通过调用指定的重置方法进行文件重置操作
185function resetFiles (repo, log, resetFunctions) {

Callers 1

checkoutRemoteBranchFunction · 0.85

Calls 1

execFunction · 0.85

Tested by

no test coverage detected