mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
Use head for tags
This commit is contained in:
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
Block a user