diff options
| author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-07 11:48:39 -0600 |
|---|---|---|
| committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-03-07 11:48:39 -0600 |
| commit | 9812cc869a1cbb47e4918e3eaff58d2a5e1b4d46 (patch) | |
| tree | cbf51997e012437aa3188e5f86882a656b1409fc /tools/ci | |
| parent | 404e41fd16d456d83d4db538b7b39e0269522005 (diff) | |
| download | numpy-9812cc869a1cbb47e4918e3eaff58d2a5e1b4d46.tar.gz | |
CI: Ensure that doc-build uses "main" as branch name
The default of git is still "master", so we need to set
`--initial-branch=main` to ensure that we use the name `main`
that is used in the devdoc repository.
Closes gh-18568
Diffstat (limited to 'tools/ci')
| -rwxr-xr-x | tools/ci/push_docs_to_repo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ci/push_docs_to_repo.py b/tools/ci/push_docs_to_repo.py index 939a09c58..555a918e4 100755 --- a/tools/ci/push_docs_to_repo.py +++ b/tools/ci/push_docs_to_repo.py @@ -44,7 +44,7 @@ def run(cmd, stdout=True): workdir = tempfile.mkdtemp() os.chdir(workdir) -run(['git', 'init']) +run(['git', 'init', '--initial-branch=main']) run(['git', 'remote', 'add', 'origin', args.remote]) run(['git', 'config', '--local', 'user.name', args.committer]) run(['git', 'config', '--local', 'user.email', args.email]) |
