diff --git a/build/commit_hash.js b/build/commit_hash.js index 8225817ee..3719f5906 100644 --- a/build/commit_hash.js +++ b/build/commit_hash.js @@ -7,7 +7,7 @@ export const getCommitHash = () => { } else { try { return childProcess - .execSync('git rev-parse --short HEAD') + .execSync('PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD') .toString() .trim() } catch (e) {