aboutsummaryrefslogtreecommitdiff
path: root/bin/mrconfig
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-27 11:19:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-27 11:19:28 -0300
commite867618cc7eb18e994569dda445be397140d7257 (patch)
tree85d923ade182c8c4ac5a13561bd2b68e68cfc0a4 /bin/mrconfig
parentee8938e17c176c45bffa5256c9903efcd2f54557 (diff)
downloadpuppet-bootstrap-e867618cc7eb18e994569dda445be397140d7257.tar.gz
puppet-bootstrap-e867618cc7eb18e994569dda445be397140d7257.tar.bz2
Fetch submodules using https
Diffstat (limited to 'bin/mrconfig')
-rwxr-xr-xbin/mrconfig5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mrconfig b/bin/mrconfig
index a7bd72a..48815c1 100755
--- a/bin/mrconfig
+++ b/bin/mrconfig
@@ -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