diff --git a/CHANGELOG.md b/CHANGELOG.md index f285c19..abaf09e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.2] 2025-04-22 + +- Correct the contribs plugin to use the `--follow` option when obtaining + contributors' information. + ## [1.1.1] 2025-04-18 🌵 - Improve the `contribs` plugin to not pollute the logs with diff --git a/neoteroi/mkdocs/__init__.py b/neoteroi/mkdocs/__init__.py index a82b376..72f26f5 100644 --- a/neoteroi/mkdocs/__init__.py +++ b/neoteroi/mkdocs/__init__.py @@ -1 +1 @@ -__version__ = "1.1.1" +__version__ = "1.1.2" diff --git a/neoteroi/mkdocs/contribs/git.py b/neoteroi/mkdocs/contribs/git.py index 90e70ee..afda0d9 100644 --- a/neoteroi/mkdocs/contribs/git.py +++ b/neoteroi/mkdocs/contribs/git.py @@ -47,17 +47,12 @@ def get_contributors(self, file_path: Path) -> List[Contributor]: using the Git CLI. """ in_process = subprocess.Popen( - ["git", "log", "--pretty=short", str(file_path)], stdout=subprocess.PIPE + ["git", "log", "--pretty=short", "--follow", str(file_path)], + stdout=subprocess.PIPE, ) result = self._decode( subprocess.check_output( - [ - "git", - "shortlog", - "--summary", - "--numbered", - "--email", - ], + ["git", "shortlog", "--summary", "--numbered", "--email"], stdin=in_process.stdout, ) )