mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 09:46:30 -05:00
b719ce79db
HedgeDoc crashed with `uncaughtException: ENOENT: no such file or directory` on startup, when `.git/ref/heads` did not contain a file for the current branch. This seems to happen regularly with current Git versions. This fixes the crash by first trying to use the `git` executable for getting the current commit SHA (before running our own parsing code) and introducing a separate check to prevent accessing a nonexistent file in `.git/ref/heads`. Signed-off-by: David Mehren <git@herrmehren.de> |
||
---|---|---|
.. | ||
features.md | ||
privacy.md.example | ||
release-notes.md | ||
slide-example.md | ||
yaml-metadata.md |