PaperMC / docs

Documentation for all projects under the PaperMC umbrella.
https://docs.papermc.io/
BSD 2-Clause "Simplified" License
43 stars 113 forks source link

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

Closed MiniDigger closed 7 months ago

MiniDigger commented 7 months ago
[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)