summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-03-07 11:48:39 -0600
committerSebastian Berg <sebastian@sipsolutions.net>2021-03-07 11:48:39 -0600
commit9812cc869a1cbb47e4918e3eaff58d2a5e1b4d46 (patch)
treecbf51997e012437aa3188e5f86882a656b1409fc
parent404e41fd16d456d83d4db538b7b39e0269522005 (diff)
downloadnumpy-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
-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])