replace abbrev-ref with short since abbrev will try to use branch name
This commit is contained in:
parent
97a1e09f6e
commit
ec059d42d7
@ -50,7 +50,7 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function getGitRevision() {
|
function getGitRevision() {
|
||||||
return child_process.execSync(`git rev-parse --abbrev-ref HEAD`, {
|
return child_process.execSync(`git rev-parse --short HEAD`, {
|
||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
}).trim();
|
}).trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user