Use commit-ish for git description
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