You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "efegokdemir (via GitHub)" <gi...@apache.org> on 2026/09/25 16:30:19 UTC
[PR] warn when site SCM repository is shallow [maven-doxia-sitetools]
efegokdemir opened a new pull request, #696:
URL: https://github.com/apache/maven-doxia-sitetools/pull/696
## Summary
Doxia site SCM metadata can report inaccurate modification dates when the site is rendered from a shallow Git clone. This change detects the repository's `.git/shallow` marker and emits a warning before SCM metadata is used.
## Changes
- Detect shallow Git repositories in the SCM context customizer.
- Warn that SCM modification dates may be inaccurate.
- Add coverage for shallow-repository detection.
## Testing
- `mvn -pl doxia-site-scm-context -am -Dtest=ScmAttributesContextCustomizerTest -Dsurefire.failIfNoSpecifiedTests=false -Dspotless.check.skip=true -Dspotless.apply.skip=true -Dcheckstyle.skip=true -Drat.skip=true test` — passed (5 tests)
- `mvn -pl doxia-site-scm-context -am checkstyle:check -DskipTests -Dspotless.check.skip=true -Drat.skip=true` — passed
- `git diff --check` — passed
`spotless:check` was attempted but is blocked by the local Palantir formatter/JDK incompatibility (`NoSuchFieldError` in `JCTree$JCCompilationUnit`) on an unchanged existing test file.
Fixes #656
- [x] This pull request addresses one issue without unrelated changes.
- [x] Unit tests cover the behavioral change.
- [x] The contribution is licensed under the Apache License 2.0.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] warn when site SCM repository is shallow [maven-doxia-sitetools]
Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz merged PR #696:
URL: https://github.com/apache/maven-doxia-sitetools/pull/696
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org