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 = "."):
16
16
n_commits = commit_count (self .repo )
17
17
18
18
if os .environ .get ('GITLAB_CI' ) and n_commits < 50 :
19
+ # Default is GIT_DEPTH of 50 for gitlab
19
20
logging .warning ("""
20
21
Running on a gitlab runner might lead to wrong git revision dates
21
22
due to a shallow git fetch depth.
22
23
Make sure to set GIT_DEPTH to 1000 in your .gitlab-ci.yml file.
23
24
(see https://docs.gitlab.com/ee/user/project/pipelines/settings.html#git-shallow-clone).
24
25
""" )
25
26
if os .environ .get ('GITHUB_ACTIONS' ) and n_commits == 1 :
27
+ # Default is fetch-depth of 1 for github actions
26
28
logging .warning ("""
27
29
Running on github actions might lead to wrong git revision dates
28
30
due to a shallow git fetch depth.
Original file line number Diff line number Diff line change 5
5
6
6
setup (
7
7
name = 'mkdocs-git-revision-date-localized-plugin' ,
8
- version = '0.4.6 ' ,
8
+ version = '0.4.8 ' ,
9
9
description = 'Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file.' ,
10
10
long_description = long_description ,
11
11
long_description_content_type = "text/markdown" ,
32
32
'git-revision-date-localized = mkdocs_git_revision_date_localized_plugin.plugin:GitRevisionDateLocalizedPlugin'
33
33
]
34
34
}
35
- )
35
+ )
You can’t perform that action at this time.
0 commit comments