Answer product-owner round 2: 0 🔴, 1 🟡 (0 misread); name the clone in self-update's two refusals too, and move the note for a clone on 0.17.0 last in Update

This commit is contained in:
2026-12-04 00:27:38 +01:00
parent bbbf3767cc
commit a73ad34695
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ def moved_to_newest(clone: str) -> str | Failure:
if isinstance(tag, Failure):
return tag
if tag is None:
return Failure("origin has no v* tag to move to")
return Failure(f"{clone}'s origin has no v* tag to move to")
# Re-reads each file through the clean filter, so a model pick alone leaves settings.json unchanged.
if isinstance(refreshed := git("update-index", "-q", "--refresh", cwd=clone), Failure):
return refreshed
@@ -33,7 +33,7 @@ def moved_to_newest(clone: str) -> str | Failure:
if not isinstance(at_tag, Failure) and at_tag.strip() == tag:
return f"{clone} is already on {tag}, the newest release."
if isinstance(git("merge-base", "--is-ancestor", "HEAD", tag, cwd=clone), Failure):
return Failure(f"{tag} doesn't hold the clone's commit, so the move would drop work no release holds: cut a release that holds it first")
return Failure(f"{tag} doesn't hold {clone}'s commit, so the move would drop work no release holds: cut a release that holds it first")
settings_changed = isinstance(git("diff", "--quiet", "HEAD", tag, "--", "settings.json", cwd=clone), Failure)
# The tag holds each uncommitted change, so undoing them doesn't lose anything, and lets the move below take the tag's copy.
# A settings.json the clean filter shows unchanged may still differ on disk, by a model pick or Claude Code's key order, which checkout refuses to overwrite; the pick is asked for again below.