This is an automated email from the ASF dual-hosted git repository.
lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
The following commit(s) were added to refs/heads/main by this push:
new 5cea5b4a416 fix(pytools): run diff-index in the asf-site-next worktree
5cea5b4a416 is described below
commit 5cea5b4a4169ef69f5b4294df781b03e39e00d1c
Author: Lari Hotari <[email protected]>
AuthorDate: Wed Apr 22 18:17:16 2026 +0300
fix(pytools): run diff-index in the asf-site-next worktree
The diff-index call was missing cwd=site, so it checked the main repo
(always clean after checkout) instead of the asf-site-next worktree,
causing commit+push to be skipped. The bug was masked until now by
scripts/replace.js mutating the main tree in place; removing replace.js
exposed it and stopped the site from updating.
BUILD_ALL_VERSION=1
---
tools/pytools/lib/execute/site_uploader.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/pytools/lib/execute/site_uploader.py
b/tools/pytools/lib/execute/site_uploader.py
index 64b99cb3acc..37331c47f70 100755
--- a/tools/pytools/lib/execute/site_uploader.py
+++ b/tools/pytools/lib/execute/site_uploader.py
@@ -48,7 +48,7 @@ def _do_push(msg: str, site: Path, branch: str):
git = find_command('git', msg="git is required")
run(git, 'add', '-A', '.', cwd=site)
- changed = run(git, 'diff-index', '--quiet', 'HEAD', codes={0,
1}).returncode
+ changed = run(git, 'diff-index', '--quiet', 'HEAD', codes={0, 1},
cwd=site).returncode
print(f'changed: {changed}')
run(git, 'status', cwd=site)