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
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 @@
 
     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 ---"