tombreit / mkdocs-git-latest-changes-plugin

MkDocs plugin that allows you to display a list of recently modified pages from the Git log
https://tombreit.github.io/mkdocs-git-latest-changes-plugin/
MIT License
1 stars 2 forks source link

git log: Handle files not in working tree any more #1

Closed tombreit closed 7 months ago

tombreit commented 7 months ago
INFO    -  mkdocs_git_latest_changes_plugin: Exception while trying to get git loginfo: Cmd('git') failed due to: exit code(128)
             cmdline: git log -1 --pretty=format:{"timestamp": "%cd", "hash": "%h", "hash_full": "%H", "author": "%an", "message": "%s"}
           --date=format:%Y-%m-%d %H:%M:%S hooks/test.py
             stderr: 'fatal: ambiguous argument 'hooks/test.py': unknown revision or path not in the working tree.
           Use '--' to separate paths from revisions, like this:
           'git <command> [<revision>...] -- [<file>...]''
tombreit commented 7 months ago

Done in 56c546f08f0ac9036b866fec5b0192e70921cf15