hedgedoc/public
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
..
banner
css
docs Fix crash while getting current git commit 2021-08-14 16:08:55 +02:00
fonts
icons
js Make anchor links base uri independent 2021-07-26 22:29:33 +02:00
uploads
vendor Load abcjs from npm package 2021-06-07 20:59:37 +02:00
views Replace handlebars with string.replace 2021-06-11 09:29:26 +02:00
.eslintrc.js
default.md
screenshot.png