Ignore sandbox device mounts in the release dirty-tree check, and bump to 0.33.11

An agent sandbox bind-mounts /dev/null over protected paths such as
.bashrc and files inside .claude/, so make patch refused a tree that
was clean outside the sandbox. Untracked character devices cannot be
committed, so the check skips them and lists only what blocks the
release. Untracked files are listed one by one rather than with
--directory, since the collapsed .claude/ entry is not a device.
This commit is contained in:
Ansho Rei
2026-11-06 18:45:38 +01:00
parent 19c666b5dc
commit 07ac204829
4 changed files with 14 additions and 4 deletions
+11 -2
View File
@@ -56,15 +56,24 @@ patch minor major: release
# A release rewrites the last commit, so refuse anything that would make that
# rewrite lose work or orphan a tag.
#
# Untracked character devices are not work: an agent sandbox bind-mounts /dev/null over
# protected paths such as .bashrc, and git cannot commit a device anyway. Untracked files
# are listed one by one, not with --directory, because the sandbox also mounts devices
# inside an untracked .claude/, and a collapsed directory entry is never a device.
release:
@set -e; \
if ! git rev-parse -q --verify HEAD >/dev/null 2>&1; then \
echo "error: no commits yet, so there is no commit to fold a version bump into. Commit first." >&2; \
exit 1; \
fi; \
if [ -n "$$(git status --porcelain)" ]; then \
dirty=$$( { git status --porcelain --untracked-files=no; \
git ls-files --others --exclude-standard | while IFS= read -r f; do \
[ -c "$$f" ] || echo "?? $$f"; \
done; } ); \
if [ -n "$$dirty" ]; then \
echo "error: working tree is dirty. Commit or stash first, and decide whether that work belongs in this version:" >&2; \
git status --short >&2; \
echo "$$dirty" >&2; \
exit 1; \
fi; \
if [ -n "$$(git tag --points-at HEAD)" ]; then \