Skip to content

Commit efeefd1

Browse files
build: fix getRemoteCommitSha to only return the sha (#13699)
1 parent 2f15784 commit efeefd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/release/git/git-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class GitClient {
1919
/** Gets the commit SHA for the specified remote repository branch. */
2020
getRemoteCommitSha(branchName: string): string {
2121
return spawnSync('git', ['ls-remote', this.remoteGitUrl, '-h', `refs/heads/${branchName}`],
22-
{cwd: this.projectDir}).stdout.toString().trim();
22+
{cwd: this.projectDir}).stdout.toString().split('\t')[0].trim();
2323
}
2424

2525
/** Gets the latest commit SHA for the specified git reference. */

0 commit comments

Comments
 (0)