Skip to content

Commit 1ff0996

Browse files
Correct the contribs plugin to use --follow
Correct the contribs plugin to use the `--follow` option when obtaining contributors' information.
1 parent 9ef15ca commit 1ff0996

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.2] 2025-04-22
9+
10+
- Correct the contribs plugin to use the `--follow` option when obtaining
11+
contributors' information.
12+
813
## [1.1.1] 2025-04-18 🌵
914

1015
- Improve the `contribs` plugin to not pollute the logs with

neoteroi/mkdocs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.1.1"
1+
__version__ = "1.1.2"

neoteroi/mkdocs/contribs/git.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,12 @@ def get_contributors(self, file_path: Path) -> List[Contributor]:
4747
using the Git CLI.
4848
"""
4949
in_process = subprocess.Popen(
50-
["git", "log", "--pretty=short", str(file_path)], stdout=subprocess.PIPE
50+
["git", "log", "--pretty=short", "--follow", str(file_path)],
51+
stdout=subprocess.PIPE,
5152
)
5253
result = self._decode(
5354
subprocess.check_output(
54-
[
55-
"git",
56-
"shortlog",
57-
"--summary",
58-
"--numbered",
59-
"--email",
60-
],
55+
["git", "shortlog", "--summary", "--numbered", "--email"],
6156
stdin=in_process.stdout,
6257
)
6358
)

0 commit comments

Comments
 (0)