File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
mkdocs_git_revision_date_localized_plugin Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,19 @@ def raise_ci_warnings(repo) -> None:
4646 """
4747 )
4848
49+ # Azure Devops Pipeline
50+ # Does not limit fetch-depth by default
51+ elif int (os .getenv ("Agent.Source.Git.ShallowFetchDepth" , 10e99 )) < n_commits :
52+ logging .warning (
53+ """
54+ [git-revision-date-localized-plugin] Running on Azure pipelines with limited
55+ fetch-depth might lead to wrong git revision dates due to a shallow git fetch depth.
56+
57+ Remove any Shallow Fetch settings
58+ (see https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#shallow-fetch).
59+ """
60+ )
61+
4962 # Bitbucket pipelines
5063 elif os .getenv ("CI" ) is not None and n_commits < 50 :
5164 # Default is fetch-depth of 50 for bitbucket pipelines
@@ -60,18 +73,6 @@ def raise_ci_warnings(repo) -> None:
6073 """
6174 )
6275
63- # Azure Devops Pipeline
64- # Does not limit fetch-depth by default
65- elif int (os .getenv ("Agent.Source.Git.ShallowFetchDepth" , 10e99 )) < n_commits :
66- logging .warning (
67- """
68- [git-revision-date-localized-plugin] Running on Azure pipelines with limited
69- fetch-depth might lead to wrong git revision dates due to a shallow git fetch depth.
70-
71- Remove any Shallow Fetch settings
72- (see https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/pipeline-options-for-git?view=azure-devops#shallow-fetch).
73- """
74- )
7576
7677
7778def commit_count (repo ) -> int :
You can’t perform that action at this time.
0 commit comments