Skip to content

Commit

Permalink
doc(todo): use better git command
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jun 2, 2017
1 parent 4a8cbad commit e55ebd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/wechaty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export class Wechaty extends EventEmitter implements Sayable {
public version(forceNpm = false): string {
// TODO: use git rev-parse HEAD ?
const dotGitPath = path.join(__dirname, '..', '.git') // only for ts-node, not for dist
// TODO: use git rev-parse HEAD ?
const gitLogCmd = 'git'
const gitLogArgs = ['log', '--oneline', '-1']

Expand Down

0 comments on commit e55ebd5

Please sign in to comment.