Use ref instead of tag vs branch

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

File diff suppressed because one or more lines are too long

View File

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