Skip to content
Myr

Merge pull request #4010 from pallets/default-branch

Before adoption: this commit came in with the history the project adopted, so no landing records it.

rename default branch in files

authored by David Lord · committed by GitHub · parents 6fb1101, 52adf2e · Browse files · 5 files+9 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+9 added−9 removed

  • other:+9 added−9 removed

5 files+9 added−9 removed

modified:.github/workflows/tests.yaml+2 added-2 removed
modified:docs/conf.py+1 added-1 removed
76 unmodified lines
77 else:78 words = None7980 if packaging.version.parse(release).is_devrelease:81 url = f"{base_url}master/{text}"81 url = f"{base_url}main/{text}"82 else:83 url = f"{base_url}{release}/{text}"8485 if words is None:
13 unmodified lines
modified:examples/tutorial/README.rst+2 added-2 removed
9 unmodified lines
10-------1112**Be sure to use the same version of the code as the version of the docs13you're reading.** You probably want the latest tagged version, but the14default Git version is the master branch. ::14default Git version is the main branch. ::1516 # clone the repository17 $ git clone https://github.com/pallets/flask18 $ cd flask
15 unmodified lines
34Install Flaskr::3536 $ pip install -e .3738Or if you are using the master branch, install Flask from source before38Or if you are using the main branch, install Flask from source before39installing Flaskr::4041 $ pip install -e ../..42 $ pip install -e .
35 unmodified lines
modified:CONTRIBUTING.rst+3 added-3 removed
141 unmodified lines
142143 .. code-block:: text144145 $ git fetch origin146 $ git checkout -b your-branch-name origin/1.1.x146 $ git checkout -b your-branch-name origin/2.0.x147148 If you're submitting a feature addition or change, branch off of the149 "master" branch.149 "main" branch.150151 .. code-block:: text152153 $ git fetch origin154 $ git checkout -b your-branch-name origin/master154 $ git checkout -b your-branch-name origin/main155156- Using your favorite editor, make your changes,157 `committing as you go`_.158- Include tests that cover any code changes you make. Make sure the
63 unmodified lines
modified:README.rst+1 added-1 removed
53 unmodified lines
5455For guidance on setting up a development environment and how to make a56contribution to Flask, see the `contributing guidelines`_.5758.. _contributing guidelines: https://github.com/pallets/flask/blob/master/CONTRIBUTING.rst58.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst596061Donate62------
20 unmodified lines