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:19 UTC

[sling-tooling-scm] 10/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 fcd0c9e6598845fe3735cb6a1cc26f9e90e43ea3
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Sep 28 19:11:48 2017 +0000

    SLING-3987 - move from Subversion to Git
    
    Prevent duplicate 'sling' in repository name
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1810030 13f79535-47bb-0310-9956-ffa450edef68
---
 scripts/migrate-to-git.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/scripts/migrate-to-git.sh b/scripts/migrate-to-git.sh
index 610b394..05865af 100755
--- a/scripts/migrate-to-git.sh
+++ b/scripts/migrate-to-git.sh
@@ -71,7 +71,12 @@ while read -r module; do
 
     artifactId=$(xmllint --xpath "/*[local-name()='project']/*[local-name()='artifactId']/text()" ${module_orig}/pom.xml)
 
-    repo_name="sling-${artifactId}" # add TLP prefix
+    # add TLP prefix _if needed_
+    if [[ $artifactId == "sling-" ]]; then
+        repo_name=${artifactId}
+    else
+        repo_name="sling-${artifactId}"
+    fi
     
     echo "---- Preparing to process $module_orig as $repo_name ---"