Merge pull request #4426 from brunnre8/worktrees

getGitCommit: allow git worktrees
This commit is contained in:
Max Leiter 2021-12-05 14:23:12 -08:00 committed by GitHub
commit 981de663fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}