We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getRemoteCommitSha
1 parent 1ebb6a4 commit 946b05dCopy full SHA for 946b05d
tools/release/git/git-client.ts
@@ -19,7 +19,7 @@ export class GitClient {
19
/** Gets the commit SHA for the specified remote repository branch. */
20
getRemoteCommitSha(branchName: string): string {
21
return spawnSync('git', ['ls-remote', this.remoteGitUrl, '-h', `refs/heads/${branchName}`],
22
- {cwd: this.projectDir}).stdout.toString().trim();
+ {cwd: this.projectDir}).stdout.toString().split('\t')[0].trim();
23
}
24
25
/** Gets the latest commit SHA for the specified git reference. */
0 commit comments