Skip to content

Commit

Permalink
fix: get latest tag error when no tag exist
Browse files Browse the repository at this point in the history
  • Loading branch information
neikvon committed Sep 15, 2020
1 parent f6bcc01 commit fa2c578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const stash = {
const tag = {
// info
list: (opts?: object) => exec('git tag', opts).then(s2a),
latest: (opts?: object) => exec('git describe --abbrev=0', opts).catch((err) => console.log),
latest: (opts?: object) => exec('git describe --abbrev=0', opts).catch((_) => ''),

// action
add: (n: Argv, opts?: object) => exec(`git tag -a ${n}`, opts),
Expand Down

0 comments on commit fa2c578

Please sign in to comment.