summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2021-03-07 13:32:25 -0700
committerGitHub <noreply@github.com>2021-03-07 13:32:25 -0700
commit516a0ce17153ffd3153bc9427869bff2b58e329a (patch)
tree4966e77b709c1a0ed213b1e04c26caff7074044c
parent4af35a75b313411753b037f040d0eaf234321c5b (diff)
parentf2dd5ab63fad36c0dd6b5e16cd7883ad25b98100 (diff)
downloadnumpy-516a0ce17153ffd3153bc9427869bff2b58e329a.tar.gz
Merge pull request #18570 from seberg/ci-devdoc-branch
CI: Use `git branch -m` instead of `--initial-branch=main`
-rwxr-xr-xtools/ci/push_docs_to_repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ci/push_docs_to_repo.py b/tools/ci/push_docs_to_repo.py
index 555a918e4..00c4f7074 100755
--- a/tools/ci/push_docs_to_repo.py
+++ b/tools/ci/push_docs_to_repo.py
@@ -44,7 +44,8 @@ def run(cmd, stdout=True):
workdir = tempfile.mkdtemp()
os.chdir(workdir)
-run(['git', 'init', '--initial-branch=main'])
+run(['git', 'init'])
+run(['git', 'branch', '-m', 'master', 'main'])
run(['git', 'remote', 'add', 'origin', args.remote])
run(['git', 'config', '--local', 'user.name', args.committer])
run(['git', 'config', '--local', 'user.email', args.email])