You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2021/09/22 07:29:45 UTC

[sling-aggregator] 01/01: add revision per project

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

kwin pushed a commit to branch bugfix/include-revision-in-manifest
in repository https://gitbox.apache.org/repos/asf/sling-aggregator.git

commit 733d9bd483462fcd994ef2bc729bcae82e29ec69
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Sep 22 09:29:23 2021 +0200

    add revision per project
---
 collect-sling-repos.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/collect-sling-repos.groovy b/collect-sling-repos.groovy
index 121bfe6..adcf365 100755
--- a/collect-sling-repos.groovy
+++ b/collect-sling-repos.groovy
@@ -95,9 +95,9 @@ xml.manifest() {
     slingRepos.forEach { repo ->
         def groups = getGroups(repo, groupMap)
         if ( groups ) {
-            project(path: repoPath(repo), name: "${repo.name}.git", description: "${repo.description}", groups: getGroups(repo, groupMap))
+            project(path: repoPath(repo), name: "${repo.name}.git", description: "${repo.description}", groups: getGroups(repo, groupMap), revision: "${repo.default_branch}")
         } else {
-            project(path: repoPath(repo), name: "${repo.name}.git", description: "${repo.description}")
+            project(path: repoPath(repo), name: "${repo.name}.git", description: "${repo.description}", revision: "${repo.default_branch}")
         }
     }
 }