]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
Fetch submodules using https
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 27 Jun 2016 14:19:28 +0000 (11:19 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 27 Jun 2016 14:19:28 +0000 (11:19 -0300)
bin/mrconfig

index a7bd72ab57bedd4f26052c47517836b162ab79c7..48815c161bc475e4ca4090da03e4b71289a7699e 100755 (executable)
@@ -15,13 +15,12 @@ rm -f .mrconfig
 touch .mrconfig
 
 # Fetch repository list and updtate mrconfig
-curl --stderr - $URL | grep "^puppet-" | cut -d ' ' -f 1 | while read module; do
+curl --stderr - $URL | grep "^puppet-" | cut -d ' ' -f 1 | sed -e 's/\.git$//' | while read module; do
   folder="`echo $module | sed -e 's/^puppet-//'`"
-  folder="`basename $folder .git`"
 
   if [ "$folder" != "bootstrap" ]; then
     echo "Processing $folder..."
-    mr config puppet/modules/$folder checkout="git clone git://$GIT/$module $folder"
+    mr config puppet/modules/$folder checkout="git clone https://$GIT/$module $folder"
   fi
 done