You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/03/20 15:00:12 UTC

[sling-tooling-scm] 03/35: SLING-3987 - move from Subversion to Git

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

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-scm.git

commit 7430bb490717c1046c8a640fb9f20849e3196677
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Sep 20 15:17:24 2017 +0000

    SLING-3987 - move from Subversion to Git
    
    Use artifactId as the repository name
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1809038 13f79535-47bb-0310-9956-ffa450edef68
---
 scripts/migrate-to-git.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/migrate-to-git.sh b/scripts/migrate-to-git.sh
index ad36e98..f606f8b 100755
--- a/scripts/migrate-to-git.sh
+++ b/scripts/migrate-to-git.sh
@@ -33,8 +33,9 @@ for module in $(./tooling/scm/scripts/gen-repo-candidates.sh); do
         module=${module#${prefix}}
     done
 
-    repo_name=${module//\//-} # slashes to dashes
-    repo_name="sling-${repo_name}" # add TLP prefix
+    artifactId=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='artifactId']/text()" ${module_orig}/pom.xml)
+
+    repo_name="sling-${artifactId}" # add TLP prefix
     
     echo "---- Preparing to migrate $module_orig to $repo_name ---"