mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -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> |
||
---|---|---|
.. | ||
config | ||
migrations | ||
models | ||
ot | ||
web | ||
workers | ||
csp.js | ||
errors.js | ||
history.js | ||
letter-avatars.js | ||
logger.js | ||
prometheus.js | ||
realtime.js | ||
response.js | ||
utils.js |