Answer security round 1: 0 🔴, 0 🟡 (0 misread); keep a file name with a space whole in self-update, sort its imports and name its path as <clone>

This commit is contained in:
2026-12-03 23:54:03 +01:00
parent f3f9c91348
commit 4f337439f2
3 changed files with 27 additions and 10 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
usage: self-update
Run it by its path in a clone of a release, as in ~/.claude/bin/self-update. It fetches origin's
Run it by its path in a clone of a release, as in <clone>/bin/self-update. It fetches origin's
tags and checks out the newest v* tag, detached, so the clone holds only what a release holds.
Development happens in another clone, such as ~/code/claude-config. It prints the version it moved
from and to, then CHANGELOG.md's section for each version since, so you can do what each asks, such
@@ -19,8 +19,8 @@ memory, stay as they are.
import sys
from failure import Failure
from loop_state.paths import RELEASE_ROOT
from self_update.move import moved_to_newest
from loop_state.paths import RELEASE_ROOT
def main(argv: list[str], clone: str = str(RELEASE_ROOT)) -> int: