mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-12 22:22:35 +00:00
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> |
||
---|---|---|
.. | ||
banner | ||
css | ||
docs | ||
fonts | ||
icons | ||
js | ||
uploads | ||
vendor | ||
views | ||
.eslintrc.js | ||
default.md | ||
screenshot.png |