Compare commits

..

4 Commits

Author SHA1 Message Date
didericis-claude d3c04c4b36 docs: mark PRD 0044 Active
test / unit (pull_request) Successful in 33s
test / integration (pull_request) Successful in 44s
2026-06-02 16:08:34 +00:00
didericis-claude bd7ed51d2f test: add cross-backend print parity tests (PRD 0044)
Shared fixtures build DockerBottlePlan and SmolmachinesBottlePlan from
identical git_gate_plan and egress_plan inputs and assert that both
backends render the same git gate lines (name → host:port) and egress
lines (host [auth:scheme] when authenticated, host alone otherwise).
2026-06-02 16:08:25 +00:00
didericis-claude b665a94f8f refactor: hoist plan fields and print to BottlePlan base class (PRD 0044)
Move git_gate_plan, egress_plan, supervise_plan, and agent_provision
from DockerBottlePlan and SmolmachinesBottlePlan into BottlePlan.
Replace the abstract print method with a single concrete implementation
that renders git gate entries as "name → upstream_host:upstream_port"
and egress routes with conditional "[auth:scheme]" annotations.
2026-06-02 16:08:20 +00:00
didericis-claude 46c74422c5 docs(prd): add PRD 0044 — print parity across backends
test / unit (pull_request) Successful in 29s
test / integration (pull_request) Successful in 42s
2026-06-02 11:55:40 -04:00
+2 -2
View File
@@ -42,9 +42,9 @@ class GitHttpHandler(BaseHTTPRequestHandler):
hook_path = os.environ.get( hook_path = os.environ.get(
"GIT_GATE_ACCESS_HOOK", "/etc/git-gate/access-hook", "GIT_GATE_ACCESS_HOOK", "/etc/git-gate/access-hook",
) )
peer = self.client_address[0]
hook = subprocess.run( hook = subprocess.run(
[hook_path, "upload-pack", str(repo_dir), peer, peer], [hook_path, "upload-pack",
str(repo_dir), self.client_address[0], self.client_address[0]],
capture_output=True, capture_output=True,
check=False, check=False,
) )