fix - remove \n in getTag method

pull/287/head
Carlo 2021-09-05 10:15:22 +08:00
parent 3ebdb0e678
commit 91dba74ddb
No known key found for this signature in database
GPG Key ID: 119F5717F8CC5D46
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ export default class Versioning {
* Get the tag if there is one pointing at HEAD
*/
static async getTag() {
return this.git(['tag', '--points-at', 'HEAD']);
return (await this.git(['tag', '--points-at', 'HEAD'])).trim();
}
/**