From cf6ad56564c7d3eb3888a8b1b96544bd7831995e Mon Sep 17 00:00:00 2001 From: Oleg Pimenov Date: Fri, 28 Dec 2018 19:13:52 +0300 Subject: [PATCH] fix: gitclient command --- tools/release/git/git-client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/release/git/git-client.ts b/tools/release/git/git-client.ts index d87132cdc..331645ea7 100644 --- a/tools/release/git/git-client.ts +++ b/tools/release/git/git-client.ts @@ -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() { @@ -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(); }