Skip to content

Commit

Permalink
Detect all tag types in latestTag() (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
itaisteinherz authored and sindresorhus committed Jan 27, 2019
1 parent acb2ea4 commit 508dec2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/git-util.js
@@ -1,7 +1,7 @@
'use strict';
const execa = require('execa');

const latestTag = () => execa.stdout('git', ['describe', '--abbrev=0']);
const latestTag = () => execa.stdout('git', ['describe', '--abbrev=0', '--tags']);

const firstCommit = () => execa.stdout('git', ['rev-list', '--max-parents=0', 'HEAD']);

Expand Down

0 comments on commit 508dec2

Please sign in to comment.