Skip to content

Commit 2f8dc73

Browse files
committed
bump version to 0.4.8
1 parent 1002f96 commit 2f8dc73

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mkdocs_git_revision_date_localized_plugin/util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ def __init__(self, path = "."):
1616
n_commits = commit_count(self.repo)
1717

1818
if os.environ.get('GITLAB_CI') and n_commits < 50:
19+
# Default is GIT_DEPTH of 50 for gitlab
1920
logging.warning("""
2021
Running on a gitlab runner might lead to wrong git revision dates
2122
due to a shallow git fetch depth.
2223
Make sure to set GIT_DEPTH to 1000 in your .gitlab-ci.yml file.
2324
(see https://docs.gitlab.com/ee/user/project/pipelines/settings.html#git-shallow-clone).
2425
""")
2526
if os.environ.get('GITHUB_ACTIONS') and n_commits == 1:
27+
# Default is fetch-depth of 1 for github actions
2628
logging.warning("""
2729
Running on github actions might lead to wrong git revision dates
2830
due to a shallow git fetch depth.

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='mkdocs-git-revision-date-localized-plugin',
8-
version='0.4.6',
8+
version='0.4.8',
99
description='Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file.',
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",
@@ -32,4 +32,4 @@
3232
'git-revision-date-localized = mkdocs_git_revision_date_localized_plugin.plugin:GitRevisionDateLocalizedPlugin'
3333
]
3434
}
35-
)
35+
)

0 commit comments

Comments
 (0)