Skip to content

Commit

Permalink
build: fix getRemoteCommitSha to only return the sha (#13699)
Browse files Browse the repository at this point in the history
  • Loading branch information
josephperrott authored Oct 19, 2018
1 parent 2f15784 commit efeefd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/release/git/git-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class GitClient {
/** Gets the commit SHA for the specified remote repository branch. */
getRemoteCommitSha(branchName: string): string {
return spawnSync('git', ['ls-remote', this.remoteGitUrl, '-h', `refs/heads/${branchName}`],
{cwd: this.projectDir}).stdout.toString().trim();
{cwd: this.projectDir}).stdout.toString().split('\t')[0].trim();
}

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

0 comments on commit efeefd1

Please sign in to comment.