Ignore stderr of git version check instead of redirecting it to /dev/null
This commit is contained in:
parent
34f4d0abf4
commit
3cf4e2105e
@ -64,7 +64,10 @@ function getGitCommit() {
|
||||
|
||||
try {
|
||||
_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()
|
||||
.trim();
|
||||
return _gitCommit;
|
||||
|
Loading…
Reference in New Issue
Block a user