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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to