mirror of
https://github.com/thelounge/thelounge
synced 2024-11-10 06:34:21 +00:00
Ignore stderr of git version check instead of redirecting it to /dev/null
This commit is contained in:
parent
34f4d0abf4
commit
3cf4e2105e
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ function getGitCommit() {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
_gitCommit = require("child_process")
|
_gitCommit = require("child_process")
|
||||||
.execSync("git rev-parse --short HEAD 2> /dev/null") // Returns hash of current commit
|
.execSync(
|
||||||
|
"git rev-parse --short HEAD", // Returns hash of current commit
|
||||||
|
{stdio: ["ignore", "pipe", "ignore"]}
|
||||||
|
)
|
||||||
.toString()
|
.toString()
|
||||||
.trim();
|
.trim();
|
||||||
return _gitCommit;
|
return _gitCommit;
|
||||||
|
|
Loading…
Reference in a new issue