refactor(cli/org): align org init main.rs wiring to OrgCommands + global --dir (B14-shaped) + assert org-init trailer
This commit is contained in:
@@ -134,4 +134,12 @@ fn org_init_produces_a_signed_initial_commit() {
|
||||
String::from_utf8_lossy(&verify.stdout),
|
||||
String::from_utf8_lossy(&verify.stderr)
|
||||
);
|
||||
|
||||
// The commit body must carry the org-init action trailer.
|
||||
let log_out = git(org.path(), &["log", "-1", "--format=%B"]);
|
||||
let commit_body = String::from_utf8_lossy(&log_out.stdout);
|
||||
assert!(
|
||||
commit_body.contains("Relicario-Action: org-init"),
|
||||
"HEAD commit body must contain 'Relicario-Action: org-init' trailer:\n{commit_body}"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user