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