Skip to content

Commit

Permalink
fix: gitclient command
Browse files Browse the repository at this point in the history
  • Loading branch information
pimenovoleg committed Dec 28, 2018
1 parent 1f4fd30 commit cf6ad56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/release/git/git-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { spawnSync } from 'child_process';
*/
export class GitClient {

constructor(public projectDir: string, public remoteGitUrl: string) {
}
constructor(public projectDir: string, public remoteGitUrl: string) {}

/** Gets the currently checked out branch for the project directory. */
getCurrentBranch() {
Expand Down Expand Up @@ -52,7 +51,7 @@ export class GitClient {

/** Gets the title of a specified commit reference. */
getCommitTitle(commitRef: string): string {
return spawnSync('git', ['log', '-n1', '--format', '%s', commitRef], {cwd: this.projectDir})
return spawnSync('git', ['log', '-n1', '--format=%s', commitRef], {cwd: this.projectDir})
.stdout.toString().trim();
}

Expand Down

0 comments on commit cf6ad56

Please sign in to comment.