From ba0b91b51b942f8504995317914e6441a824a62c Mon Sep 17 00:00:00 2001 From: Andreas Olsson Date: Tue, 3 Oct 2017 21:16:25 +0200 Subject: [PATCH] Remove git:// urls from docsite and from packaging (#30459) It's almost always preferable to clone by way of https:// rather than using the bare git:// protocol. Not only does https:// provide stronger guarantees it also plays nicer with corporate proxies, etc. --- docs/docsite/rst/intro_adhoc.rst | 2 +- docs/docsite/rst/intro_installation.rst | 6 +++--- packaging/arch/PKGBUILD | 2 +- packaging/debian/README.md | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docsite/rst/intro_adhoc.rst b/docs/docsite/rst/intro_adhoc.rst index 9c6e0ded4d..1b500623a4 100644 --- a/docs/docsite/rst/intro_adhoc.rst +++ b/docs/docsite/rst/intro_adhoc.rst @@ -193,7 +193,7 @@ Deploying From Source Control Deploy your webapp straight from git:: - $ ansible webservers -m git -a "repo=git://foo.example.org/repo.git dest=/srv/myapp version=HEAD" + $ ansible webservers -m git -a "repo=https://foo.example.org/repo.git dest=/srv/myapp version=HEAD" Since Ansible modules can notify change handlers it is possible to tell Ansible to run specific tasks when the code is updated, such as diff --git a/docs/docsite/rst/intro_installation.rst b/docs/docsite/rst/intro_installation.rst index 9584ed6e09..15deed88e7 100644 --- a/docs/docsite/rst/intro_installation.rst +++ b/docs/docsite/rst/intro_installation.rst @@ -124,7 +124,7 @@ You can also build an RPM yourself. From the root of a checkout or tarball, use .. code-block:: bash - $ git clone git://github.com/ansible/ansible.git + $ git clone https://github.com/ansible/ansible.git $ cd ./ansible $ make rpm $ sudo rpm -Uvh ./rpm-build/ansible-*.noarch.rpm @@ -263,7 +263,7 @@ Then install Ansible with [1]_:: Or if you are looking for the latest development version:: - pip install git+git://github.com/ansible/ansible.git@devel + pip install git+https://github.com/ansible/ansible.git@devel If you are installing on OS X Mavericks, you may encounter some noise from your compiler. A workaround is to do the following:: @@ -305,7 +305,7 @@ To install from source, clone the Ansible git repository: .. code-block:: bash - $ git clone git://github.com/ansible/ansible.git --recursive + $ git clone https://github.com/ansible/ansible.git --recursive $ cd ./ansible Once git has cloned the Ansible repository, setup the Ansible environment: diff --git a/packaging/arch/PKGBUILD b/packaging/arch/PKGBUILD index 9f90775d04..c8314b6119 100644 --- a/packaging/arch/PKGBUILD +++ b/packaging/arch/PKGBUILD @@ -24,7 +24,7 @@ optdepends=('python2-pyasn1: needed for accelerated mode' conflicts=('ansible') provides=('ansible') backup=('etc/ansible/ansible.cfg') -source=($pkgname::git://github.com/ansible/ansible.git) +source=($pkgname::git+https://github.com/ansible/ansible.git) md5sums=('SKIP') pkgver() { diff --git a/packaging/debian/README.md b/packaging/debian/README.md index cf2a689fc7..6e735fb3c5 100644 --- a/packaging/debian/README.md +++ b/packaging/debian/README.md @@ -7,7 +7,7 @@ __Note__: You must run this target as root or set `PBUILDER_BIN='sudo pbuilder'` ``` apt-get install asciidoc cdbs debootstrap devscripts make pbuilder python-setuptools -git clone git://github.com/ansible/ansible.git +git clone https://github.com/ansible/ansible.git cd ansible git submodule update --init DEB_DIST='xenial trusty precise' make deb @@ -16,7 +16,7 @@ DEB_DIST='xenial trusty precise' make deb Building in Docker: ``` -git clone git://github.com/ansible/ansible.git +git clone https://github.com/ansible/ansible.git cd ansible git submodule update --init docker build -t ansible-deb-builder -f packaging/debian/Dockerfile .