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 2017/09/20 15:17:24 UTC

svn commit: r1809038 - /sling/trunk/tooling/scm/scripts/migrate-to-git.sh

Author: rombert
Date: Wed Sep 20 15:17:24 2017
New Revision: 1809038

URL: http://svn.apache.org/viewvc?rev=1809038&view=rev
Log:
SLING-3987 - move from Subversion to Git

Use artifactId as the repository name

Modified:
    sling/trunk/tooling/scm/scripts/migrate-to-git.sh

Modified: sling/trunk/tooling/scm/scripts/migrate-to-git.sh
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/scm/scripts/migrate-to-git.sh?rev=1809038&r1=1809037&r2=1809038&view=diff
==============================================================================
--- sling/trunk/tooling/scm/scripts/migrate-to-git.sh (original)
+++ sling/trunk/tooling/scm/scripts/migrate-to-git.sh Wed Sep 20 15:17:24 2017
@@ -33,8 +33,9 @@ for module in $(./tooling/scm/scripts/ge
         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 ---"