File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
mkdocs_git_revision_date_localized_plugin Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 55
66setup (
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" ,
3232 'git-revision-date-localized = mkdocs_git_revision_date_localized_plugin.plugin:GitRevisionDateLocalizedPlugin'
3333 ]
3434 }
35- )
35+ )
You can’t perform that action at this time.
0 commit comments