mirror of
https://github.com/nasa/openmct.git
synced 2024-12-26 16:21:06 +00:00
fix: try __dirname
This commit is contained in:
parent
b4740f2f7f
commit
c6b300a6be
@ -22,18 +22,19 @@ let gitBranch = "error-retrieving-branch";
|
||||
try {
|
||||
gitRevision = require("child_process")
|
||||
.execSync("git rev-parse HEAD", {
|
||||
cwd: projectRootDir
|
||||
cwd: __dirname
|
||||
})
|
||||
.toString()
|
||||
.trim();
|
||||
gitBranch = require("child_process")
|
||||
.execSync("git rev-parse --abbrev-ref HEAD", {
|
||||
cwd: projectRootDir
|
||||
cwd: __dirname
|
||||
})
|
||||
.toString()
|
||||
.trim();
|
||||
} catch (err) {
|
||||
console.warn(err);
|
||||
console.error(err);
|
||||
// console.warn(err);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user