Use head for tags
parent
866f364f64
commit
f15f40d265
File diff suppressed because one or more lines are too long
|
@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue