We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abd171 commit 9bf7f1fCopy full SHA for 9bf7f1f
gui/scripts/gitversion.mjs
@@ -4,11 +4,9 @@ import { exec as execCallback } from 'node:child_process';
4
const exec = promisify(execCallback);
5
6
const [commitHash, versionTag, gitClean] = await Promise.all([
7
- exec('git rev-parse --verify --short HEAD').then((res) =>
8
- res.stdout.trim().substring(1)
9
- ),
+ exec('git rev-parse --verify --short HEAD').then((res) => res.stdout.trim()),
10
exec('git --no-pager tag --sort -taggerdate --points-at HEAD').then((res) =>
11
- res.stdout.split('\n')[0].trim()
+ res.stdout.split('\n')[0].trim().substring(1)
12
),
13
// If not empty then it's not clean
14
exec('git status --porcelain').then((res) => (res.stdout ? false : true)),
0 commit comments