mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 20:13:07 +00:00
Merge pull request #4426 from brunnre8/worktrees
getGitCommit: allow git worktrees
This commit is contained in:
commit
981de663fb
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue