mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Use ref instead of tag vs branch
This commit is contained in:
parent
a245f08e75
commit
866f364f64
File diff suppressed because one or more lines are too long
@ -162,8 +162,7 @@ export default class Versioning {
|
|||||||
* identifies the current commit.
|
* identifies the current commit.
|
||||||
*/
|
*/
|
||||||
static async getVersionDescription() {
|
static async getVersionDescription() {
|
||||||
const commitIsh = (await this.getTag()) || `origin/${this.branch}`;
|
return this.git(['describe', '--long', '--tags', '--always', '--debug', this.ref]);
|
||||||
return this.git(['describe', '--long', '--tags', '--always', '--debug', commitIsh]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user