Skip to content

Commit

Permalink
Correct command to list contributors for files
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertoPrevato committed Oct 4, 2022
1 parent e85cd0e commit 4a2229f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ 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).

## [0.1.0] - 2022-10-03
## [0.1.1] - 2022-10-04
- Corrects bug in the `contributors` plugin, causing failures in certain CI/CD
solutions and improves its safety and performance (removes `shell=True`!)
- Adds option to apply a class to specific contributors, for simpler styling
Expand Down
3 changes: 1 addition & 2 deletions neoteroi/contribs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_contributors(self, file_path: Path) -> List[Contributor]:
using the Git CLI.
"""
in_process = subprocess.Popen(
["git", "log", "--pretty=short"], stdout=subprocess.PIPE
["git", "log", "--pretty=short", str(file_path)], stdout=subprocess.PIPE
)
result = self._decode(
subprocess.check_output(
Expand All @@ -50,7 +50,6 @@ def get_contributors(self, file_path: Path) -> List[Contributor]:
"--summary",
"--numbered",
"--email",
str(file_path),
],
stdin=in_process.stdout,
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def readme():

setup(
name="neoteroi-mkdocs",
version="0.1.0",
version="0.1.1",
description="Plugins for MkDocs and Python Markdown",
long_description=readme(),
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 4a2229f

Please sign in to comment.