hedgedoc/public/docs
David Mehren b719ce79db
Fix crash while getting current git commit
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>
2021-08-14 16:08:55 +02:00
..
features.md Features.md: Change tag explanation 2021-03-28 19:02:30 +02:00
privacy.md.example Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00
release-notes.md Fix crash while getting current git commit 2021-08-14 16:08:55 +02:00
slide-example.md style: linting markdown files 2020-07-10 18:57:59 +02:00
yaml-metadata.md Replace CodiMD with HedgeDoc 2020-11-14 21:18:36 +01:00