Use commit-ish for git description

This commit is contained in:
Webber 2020-05-21 19:33:28 +02:00 committed by Webber Takken
parent 7e17091251
commit ce865270c4
2 changed files with 3 additions and 9 deletions

File diff suppressed because one or more lines are too long

View File

@ -162,14 +162,8 @@ export default class Versioning {
* identifies the current commit. * identifies the current commit.
*/ */
static async getVersionDescription() { static async getVersionDescription() {
return this.git([ const commitIsh = this.getTag() || `origin/${this.branch}`;
'describe', return this.git(['describe', '--long', '--tags', '--always', '--debug', commitIsh]);
'--long',
'--tags',
'--always',
'--debug',
`origin/${this.branch}`,
]);
} }
/** /**