Skip to content

Commit 52adf2e

Browse files
committed
rename default branch in files
1 parent 6fb1101 commit 52adf2e

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: Tests
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
- '*.x'
77
paths-ignore:
88
- 'docs/**'
99
- '*.md'
1010
- '*.rst'
1111
pull_request:
1212
branches:
13-
- master
13+
- main
1414
- '*.x'
1515
paths-ignore:
1616
- 'docs/**'

CONTRIBUTING.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,15 +143,15 @@ Start coding
143143
.. code-block:: text
144144
145145
$ git fetch origin
146-
$ git checkout -b your-branch-name origin/1.1.x
146+
$ git checkout -b your-branch-name origin/2.0.x
147147
148148
If you're submitting a feature addition or change, branch off of the
149-
"master" branch.
149+
"main" branch.
150150

151151
.. code-block:: text
152152
153153
$ git fetch origin
154-
$ git checkout -b your-branch-name origin/master
154+
$ git checkout -b your-branch-name origin/main
155155
156156
- Using your favorite editor, make your changes,
157157
`committing as you go`_.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Contributing
5555
For guidance on setting up a development environment and how to make a
5656
contribution to Flask, see the `contributing guidelines`_.
5757

58-
.. _contributing guidelines: https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst
58+
.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst
5959

6060

6161
Donate

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def github_link(name, rawtext, text, lineno, inliner, options=None, content=None
7878
words = None
7979

8080
if packaging.version.parse(release).is_devrelease:
81-
url = f"{base_url}master/{text}"
81+
url = f"{base_url}main/{text}"
8282
else:
8383
url = f"{base_url}{release}/{text}"
8484

examples/tutorial/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Install
1111

1212
**Be sure to use the same version of the code as the version of the docs
1313
you're reading.** You probably want the latest tagged version, but the
14-
default Git version is the master branch. ::
14+
default Git version is the main branch. ::
1515

1616
# clone the repository
1717
$ git clone https://github.com/pallets/flask
@@ -35,7 +35,7 @@ Install Flaskr::
3535

3636
$ pip install -e .
3737

38-
Or if you are using the master branch, install Flask from source before
38+
Or if you are using the main branch, install Flask from source before
3939
installing Flaskr::
4040

4141
$ pip install -e ../..

0 commit comments

Comments
 (0)