You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2020/11/16 17:32:01 UTC

[sling-slingfeature-maven-plugin] branch master updated: SLING-9914 : If no tag is specified, HEAD is used as default branch

This is an automated email from the ASF dual-hosted git repository.

cziegeler pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-slingfeature-maven-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new f8c4b88  SLING-9914 : If no tag is specified, HEAD is used as default branch
f8c4b88 is described below

commit f8c4b88dd332e96841007de11e18f9183b071c6a
Author: Carsten Ziegeler <cz...@apache.org>
AuthorDate: Mon Nov 16 18:31:37 2020 +0100

    SLING-9914 : If no tag is specified, HEAD is used as default branch
---
 src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
index 6c94857..91d5f53 100644
--- a/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
+++ b/src/main/java/org/apache/sling/feature/maven/mojos/ApisJarMojo.java
@@ -1316,6 +1316,10 @@ public class ApisJarMojo extends AbstractIncludingFeatureMojo {
             }
             if (tag == null) {
                 tag = scm.getTag();
+                // Maven uses "HEAD" as default value
+                if ( "HEAD".equals(tag) ) {
+                    tag = null;
+                }
             }
         }