Skip to content

Commit

Permalink
Merge pull request #39 from andrewkatz/master
Browse files Browse the repository at this point in the history
Use creatordate to fetch latest tag, as taggerdate does not sort properly
  • Loading branch information
WyriHaximus authored Oct 24, 2022
2 parents 5a6ae37 + 3ac6bcc commit fc6bea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { exec } = require('child_process');
const fs = require('fs');

exec(`git for-each-ref --sort=-taggerdate --count 1 --format="%(refname:short)" "refs/tags/*"`, (err, tag, stderr) => {
exec(`git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/*"`, (err, tag, stderr) => {
tag = tag.trim();

if (err) {
Expand Down

0 comments on commit fc6bea1

Please sign in to comment.