didericis-claude
d496e30681
refactor(git-gate): replace regex frontmatter edit with parse→mutate→serialize
...
The regex-based _insert_host_key_in_frontmatter had a bug: child_indent
was overwritten on every line with indent > repo_indent (including
grandchildren), so host_key landed inside the key: block instead of at
the repo level.
Replace with a clean parse → mutate → re-serialize approach:
- Add serialize_yaml_subset() to yaml_subset.py (block-style, 2-space
indent, round-trips through parse_yaml_subset)
- Replace _insert_host_key_in_frontmatter + _update_frontmatter_in_file
with _add_host_key_to_frontmatter that parses the frontmatter dict,
sets fm["git-gate"]["repos"][name]["host_key"], and re-serializes
- _find_and_update_bottle_file simplified to read file → delegate to
_add_host_key_to_frontmatter → write if changed
2026-07-09 17:21:57 +00:00
..
2026-06-26 20:35:47 -04:00
2026-07-08 12:38:15 -04:00
2026-06-23 16:53:41 -04:00
2026-06-04 11:30:51 -04:00
2026-06-22 23:54:02 -04:00
2026-06-10 22:25:00 -04:00
2026-06-22 19:09:22 +00:00
2026-06-22 23:54:02 -04:00
2026-06-25 08:58:28 +00:00
2026-06-04 11:27:23 -04:00
2026-06-23 16:53:41 -04:00
2026-07-09 00:19:24 -04:00
2026-06-09 03:27:31 +00:00
2026-07-09 00:19:24 -04:00
2026-06-25 16:13:19 -04:00
2026-06-25 08:58:28 +00:00
2026-06-25 16:13:19 -04:00
2026-06-07 11:35:35 -04:00
2026-07-01 19:50:38 +00:00
2026-07-01 19:50:38 +00:00
2026-07-08 12:38:15 -04:00
2026-06-25 04:12:43 -04:00
2026-06-30 15:08:14 -04:00
2026-06-03 23:04:17 -04:00
2026-06-26 23:22:18 -04:00
2026-06-25 03:08:47 -04:00
2026-06-25 08:58:28 +00:00
2026-06-08 23:05:14 -04:00
2026-06-23 16:53:41 -04:00
2026-06-22 23:54:02 -04:00
2026-06-30 15:08:14 -04:00
2026-06-23 16:53:41 -04:00
2026-06-25 06:07:47 +00:00
2026-07-01 19:50:38 +00:00
2026-07-01 19:50:38 +00:00
2026-06-25 05:25:42 +00:00
2026-06-25 22:04:27 -04:00
2026-05-28 17:56:14 -04:00
2026-07-08 23:46:47 -04:00
2026-07-09 17:21:57 +00:00
2026-07-08 23:46:47 -04:00
2026-07-08 23:46:47 -04:00
2026-06-25 04:12:43 -04:00
2026-06-24 15:37:57 -04:00
2026-07-08 12:38:15 -04:00
2026-06-10 22:25:00 -04:00
2026-07-06 15:48:36 -04:00
2026-06-23 03:02:03 +00:00
2026-06-25 03:27:46 -04:00
2026-06-22 23:54:02 -04:00
2026-06-25 16:13:19 -04:00
2026-06-24 22:51:27 -04:00
2026-06-25 05:10:03 -04:00
2026-06-22 23:54:02 -04:00
2026-06-22 23:54:02 -04:00
2026-06-26 21:19:27 -04:00
2026-06-22 23:54:02 -04:00
2026-06-22 23:54:02 -04:00
2026-07-09 00:19:24 -04:00
2026-06-25 03:08:47 -04:00
2026-06-01 22:24:17 -04:00
2026-06-25 04:23:13 -04:00
2026-06-10 22:25:00 -04:00
2026-07-08 12:38:15 -04:00
2026-06-04 11:30:51 -04:00
2026-07-09 00:03:00 -04:00
2026-06-04 11:30:51 -04:00
2026-07-08 22:01:35 -04:00
2026-07-09 00:19:24 -04:00
2026-06-04 11:30:51 -04:00
2026-06-04 21:54:06 +00:00
2026-07-08 23:46:47 -04:00
2026-07-08 22:01:35 -04:00
2026-06-03 17:26:15 +00:00
2026-07-06 18:53:53 +00:00
2026-07-06 17:16:18 +00:00
2026-07-06 18:53:53 +00:00
2026-07-06 18:53:53 +00:00
2026-07-09 17:21:57 +00:00