summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-03-07 11:51:17 -0700
committerGitHub <noreply@github.com>2021-03-07 11:51:17 -0700
commit6c00ecd490384abd407bf2da2ed70fc353a3b173 (patch)
treecbf51997e012437aa3188e5f86882a656b1409fc
parent404e41fd16d456d83d4db538b7b39e0269522005 (diff)
parent9812cc869a1cbb47e4918e3eaff58d2a5e1b4d46 (diff)
downloadnumpy-6c00ecd490384abd407bf2da2ed70fc353a3b173.tar.gz
Merge pull request #18569 from seberg/ci-devdoc-branch
CI: Ensure that doc-build uses "main" as branch name
-rwxr-xr-xtools/ci/push_docs_to_repo.py2
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])