This is an automated email from the ASF dual-hosted git repository. tison pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit adbe8fdb722385551d4dd669ceaf96d666ce2013 Author: tison <wander4...@gmail.com> AuthorDate: Sun Jan 15 11:25:40 2023 +0800 fix site-updater branch names Signed-off-by: tison <wander4...@gmail.com> --- tools/pytools/bin/site-updater.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/pytools/bin/site-updater.py b/tools/pytools/bin/site-updater.py index 354e6df3a29..98f4d4462b9 100755 --- a/tools/pytools/bin/site-updater.py +++ b/tools/pytools/bin/site-updater.py @@ -33,11 +33,10 @@ if __name__ == '__main__': args = parser.parse_args() git = find_command('git', msg="git is required") - branch = 'master' with tempfile.TemporaryDirectory() as cwd: if args.master_path is None: - run(git, 'clone', '-b', branch, '--depth', '1', 'https://github.com/apache/pulsar', cwd=cwd) + run(git, 'clone', '-b', 'master', '--depth', '1', 'https://github.com/apache/pulsar', cwd=cwd) master = Path(cwd) / 'pulsar' else: master = Path(args.master_path) @@ -45,4 +44,4 @@ if __name__ == '__main__': commit = run_pipe(git, 'rev-parse', '--short', 'HEAD', cwd=master).read().strip() msg = f'Docs sync done from apache/pulsar (#{commit})' - site_uploader.execute(args.push, msg, root_path(), branch) + site_uploader.execute(args.push, msg, root_path(), 'main')