mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-01-29 12:19:06 +08:00
Use ref instead of tag vs branch
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user