Skip to content

don't crash on new files because they have no git history #357

@MiniDigger

Description

@MiniDigger
[ERROR] FileNotTrackedError: Failed to retrieve the git history for file "docs/misc/tools/minimessage-web-editor.md" because the file is not tracked by git.
    at matchFromRegex (F:\Projects\paperdocs\node_modules\.pnpm\@docusaurus+utils@3.2.1_patch_hash=yygnmtjhmebpawcus5yp7z64bi_@docusaurus+types@3.2.1_esbuild@0.20.2\node_modules\@docusaurus\utils\src\gitUtils.ts:181:11)
    at getFileCommitHash (F:\Projects\paperdocs\node_modules\.pnpm\@docusaurus+utils@3.2.1_patch_hash=yygnmtjhmebpawcus5yp7z64bi_@docusaurus+types@3.2.1_esbuild@0.20.2\node_modules\@docusaurus\utils\src\gitUtils.ts:233:17)
    at async Promise.all (index 14)
    at async cacheAuthorData (F:\Projects\paperdocs\src\util\authorUtils.ts:62:19)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions