Skip to content

Commit 5835252

Browse files
authored
Merge pull request #22845 from QuLogic/auto-backport-of-pr-22199-on-v3.5.x
Backport PR #22199 on branch v3.5.x (DOC: git:// is deprecated.)
2 parents f9f736a + 23f4347 commit 5835252

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

doc/devel/gitwash/development_workflow.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ Now all those people can do::
210210

211211
git clone https://github.com/your-user-name/matplotlib.git
212212

213-
Remember that links starting with ``https`` or ``git@`` are read-write, and that
214-
``git@`` uses the ssh protocol; links starting with ``git://`` are read-only.
213+
Remember that links starting with ``https`` or ``git@`` are read-write, and that
214+
``git@`` uses the ssh protocol.
215215

216216
Your collaborators can then commit directly into that repo with the
217217
usual::

doc/devel/gitwash/following_latest.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Get the local copy of the code
2020

2121
From the command line::
2222

23-
git clone git://github.com/matplotlib/matplotlib.git
23+
git clone https://github.com/matplotlib/matplotlib.git
2424

2525
You now have a copy of the code tree in the new ``matplotlib`` directory.
2626

doc/devel/gitwash/maintainer_workflow.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Let's say you have some changes that need to go into trunk
3131
The changes are in some branch that you are currently on. For example, you are
3232
looking at someone's changes like this::
3333

34-
git remote add someone git://github.com/someone/matplotlib.git
34+
git remote add someone https://github.com/someone/matplotlib.git
3535
git fetch someone
3636
git branch cool-feature --track someone/cool-feature
3737
git checkout cool-feature

doc/devel/gitwash/patching.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Overview
3131
git config --global user.email you@yourdomain.example.com
3232
git config --global user.name "Your Name Comes Here"
3333
# get the repository if you don't have it
34-
git clone git://github.com/matplotlib/matplotlib.git
34+
git clone https://github.com/matplotlib/matplotlib.git
3535
# make a branch for your patching
3636
cd matplotlib
3737
git branch the-fix-im-thinking-of
@@ -61,7 +61,7 @@ In detail
6161
#. If you don't already have one, clone a copy of the
6262
`Matplotlib`_ repository::
6363

64-
git clone git://github.com/matplotlib/matplotlib.git
64+
git clone https://github.com/matplotlib/matplotlib.git
6565
cd matplotlib
6666

6767
#. Make a 'feature branch'. This will be where you work on

doc/devel/gitwash/set_up_fork.rst

+4-9
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Overview
1515

1616
git clone https://github.com/your-user-name/matplotlib.git
1717
cd matplotlib
18-
git remote add upstream git://github.com/matplotlib/matplotlib.git
18+
git remote add upstream https://github.com/matplotlib/matplotlib.git
1919

2020
In detail
2121
=========
@@ -50,23 +50,18 @@ Linking your repository to the upstream repo
5050
::
5151

5252
cd matplotlib
53-
git remote add upstream git://github.com/matplotlib/matplotlib.git
53+
git remote add upstream https://github.com/matplotlib/matplotlib.git
5454

5555
``upstream`` here is just the arbitrary name we're using to refer to the
5656
main `Matplotlib`_ repository at `Matplotlib github`_.
5757

58-
Note that we've used ``git://`` for the URL rather than ``https://`` or ``git@``. The
59-
``git://`` URL is read only. This means that we can't accidentally
60-
(or deliberately) write to the upstream repo, and we are only going to
61-
use it to merge into our own code.
62-
6358
Just for your own satisfaction, show yourself that you now have a new
6459
'remote', with ``git remote -v show``, giving you something like:
6560

6661
.. code-block:: none
6762
68-
upstream git://github.com/matplotlib/matplotlib.git (fetch)
69-
upstream git://github.com/matplotlib/matplotlib.git (push)
63+
upstream https://github.com/matplotlib/matplotlib.git (fetch)
64+
upstream https://github.com/matplotlib/matplotlib.git (push)
7065
origin https://github.com/your-user-name/matplotlib.git (fetch)
7166
origin https://github.com/your-user-name/matplotlib.git (push)
7267

0 commit comments

Comments
 (0)