fix last tag detection

This commit is contained in:
pooya parsa 2019-04-25 14:16:38 +04:30
parent a5cf705ed8
commit 3539c64b35

View File

@ -63,8 +63,8 @@ function execCommand(cmd, args) {
}
async function getLastGitTag() {
const r = await execCommand('git', ['describe'])
return /^[^-]+/.exec(r)[0]
const r = await execCommand('git', ['--no-pager', 'tag', '-l']).then(r => r.split('\n'))
return r[r.length - 1]
}
async function getCurrentGitBranch() {