Use head for tags

This commit is contained in:
Webber 2020-05-22 10:25:50 +02:00 committed by Webber Takken
parent 866f364f64
commit f15f40d265
2 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

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