Use head for tags

pull/92/head
Webber 2020-05-22 10:25:50 +02:00
parent bc6b6ce62e
commit 6c2a39faef
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. * identifies the current commit.
*/ */
static async getVersionDescription() { 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]);
} }
/** /**