Merge pull request #4426 from brunnre8/worktrees
getGitCommit: allow git worktrees
This commit is contained in:
commit
981de663fb
@ -73,7 +73,7 @@ function getGitCommit() {
|
||||
return _gitCommit;
|
||||
}
|
||||
|
||||
if (!fs.existsSync(path.resolve(__dirname, "..", ".git", "HEAD"))) {
|
||||
if (!fs.existsSync(path.resolve(__dirname, "..", ".git"))) {
|
||||
_gitCommit = null;
|
||||
return null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user