MCPcopy Create free account
hub / github.com/angular/dev-infra / checkoutUpstreamBranch

Function checkoutUpstreamBranch

ng-dev/release/publish/actions.ts:395–398  ·  view source on GitHub ↗

Checks out an upstream branch with a detached head.

(branchName: string)

Source from the content-addressed store, hash-verified

393
394 /** Checks out an upstream branch with a detached head. */
395 protected async checkoutUpstreamBranch(branchName: string) {
396 this.git.run(['fetch', '-q', this.git.getRepoGitUrl(), '--', branchName]);
397 this.git.run(['checkout', '-q', 'FETCH_HEAD', '--detach']);
398 }
399
400 /** Installs all Yarn dependencies in the current branch. */
401 protected async installDependenciesForCurrentBranch() {

Callers

nothing calls this directly

Calls 2

runMethod · 0.45
getRepoGitUrlMethod · 0.45

Tested by

no test coverage detected