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/10/12 11:22:32 UTC

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

Author: rombert
Date: Thu Oct 12 11:22:32 2017
New Revision: 1811940

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

- replace dots with dashes in repo names
- remove stale TODO entries

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=1811940&r1=1811939&r2=1811940&view=diff
==============================================================================
--- sling/trunk/tooling/scm/scripts/migrate-to-git.sh (original)
+++ sling/trunk/tooling/scm/scripts/migrate-to-git.sh Thu Oct 12 11:22:32 2017
@@ -99,6 +99,9 @@ while read -r module; do
             *) echo "Unknown non-Maven module ${module}, unable to set description"; exit 1;;
         esac
     fi
+
+    # ASF infra does not permit dots in repository names
+    repo_name=${repo_name//./-}
     
     echo "---- Preparing to process $module_orig as $repo_name ---"
 
@@ -154,12 +157,10 @@ while read -r module; do
 
         echo "Creating GIT repository ..."
      
-        # TODO - create the repository using the ASF self-service tool
         ./tooling/scm/scripts/create-gitbox-repo.sh ${repo_name} "${short_desc}"
 
     else # -p
         pushd ${git_repo_location}/${repo_name}
-        # TODO - use the ASF remotes for the final run
         if [ $(git remote show | grep origin | wc -l) -eq 0 ]; then
             git remote add origin https://github.com/apache/${repo_name}.git
             git push -u origin master