mirror of
https://github.com/typst/typst
synced 2025-05-13 12:36:23 +08:00
Check the exit status of the `git` invocation before parsing the output. If there's no `.git` the output may look like: ``` fatal: not a git repository (or any of the parent directories): .git ``` and the version shall be set to unknown.