Skip to content

git error when building docs with the git-revision-date plugin #20

@jeromevdl

Description

@jeromevdl

A recent change in Git impacts our GitHub build. We have the error described here:

ERROR    -  Error reading page 'index.md': Cmd('git') failed due to: exit code(128)
  cmdline: git log -n 1 --date=short --format=%ad /docs/docs/index.md
  stderr: 'fatal: unsafe repository ('/docs' is owned by someone else)

Using the workaround didn't work as we are using mkdocs within a container (docker run --rm -t -v ${PWD}:/docs squidfunk/mkdocs-material build).

Until a solution is found, we have removed the plugin from our project. Let us know if you have a workaround or recommendations to use your plugin within GitHub actions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions