Willie
314e2b2df4
feat(init): switch git_root scope headlessly on an existing setup
...
Previously 'skillshare init --git-root <scope>' on an already-initialized
setup either errored with 'already initialized' (no --remote) or warned and
ignored the flag (with --remote), so there was no non-interactive way to
change the scope after init — only the web UI or a manual config edit.
handleExistingInit now treats 'init --git-root <scope>' (without --remote) as
a headless scope switch via switchGitRootScope: it inits a repo at the new
scope directory (reusing one already there, sharing doGitInitIfAbsent with the
fresh-init and server paths) and persists git_root. It does not relocate an
existing repo — switching scope means 'version a different directory', not
'move history'. Combined with --remote the flag still falls through to the
remote path, now pointing users at the standalone form instead of a bare
'ignored' warning.
Update the mismatch guidance to offer 'skillshare init --git-root <scope>' as
the first fix, and revise the git_root docs (configuration + init) to document
the headless switch, superseding the earlier 'must re-run init / not supported'
wording. Add TestGitRoot_SwitchScopeAfterInit.
2026-05-30 19:23:12 +08:00
..
2026-05-11 21:34:38 +08:00
2026-04-10 15:24:18 +08:00
2026-03-26 19:20:52 +08:00
2026-04-10 15:24:18 +08:00
2026-05-21 14:49:11 +08:00
2026-03-09 12:47:03 +08:00
2026-04-09 14:31:14 +08:00
2026-04-10 15:24:18 +08:00
2026-04-10 15:24:18 +08:00
2026-03-04 12:16:32 +08:00
2026-04-10 16:50:08 +08:00
2026-05-21 14:49:11 +08:00
2026-04-08 22:38:56 +08:00
2026-04-08 21:31:41 +08:00
2026-05-20 18:24:41 +08:00
2026-04-01 00:32:49 +08:00
2026-05-21 14:49:11 +08:00
2026-04-11 03:17:22 +08:00
2026-04-11 03:17:22 +08:00
2026-05-20 15:42:53 +08:00
2026-04-09 00:36:39 +08:00
2026-04-09 00:36:39 +08:00
2026-05-21 14:49:11 +08:00
2026-05-30 19:23:12 +08:00
2026-05-27 15:10:00 +08:00
2026-05-27 15:10:00 +08:00
2026-05-27 15:10:00 +08:00
2026-05-27 15:10:00 +08:00
2026-05-27 15:10:00 +08:00
2026-05-08 16:06:14 +08:00
2026-04-10 02:05:06 +08:00
2026-03-20 02:36:50 +08:00
2026-03-02 02:23:50 +08:00
2026-03-02 02:23:50 +08:00
2026-05-20 15:42:53 +08:00
2026-03-02 02:23:50 +08:00
2026-04-10 15:24:18 +08:00
2026-05-21 14:49:11 +08:00
2026-04-10 02:05:01 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-21 23:49:40 +08:00
2026-05-21 23:49:40 +08:00
2026-05-24 01:21:06 +08:00
2026-05-21 14:49:11 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-04-10 15:24:18 +08:00
2026-05-21 14:49:11 +08:00
2026-04-10 15:24:18 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-03-25 21:14:16 +08:00
2026-05-21 14:49:11 +08:00
2026-05-21 14:49:11 +08:00
2026-03-25 21:14:16 +08:00
2026-05-30 19:23:12 +08:00
2026-03-12 16:45:02 +08:00
2026-02-13 14:21:37 +08:00
2026-05-21 14:49:11 +08:00
2026-05-13 03:49:40 +08:00
2026-02-22 08:08:35 +08:00
2026-05-30 19:23:12 +08:00
2026-03-09 12:47:03 +08:00
2026-05-21 14:49:11 +08:00
2026-05-22 11:29:01 +08:00
2026-05-05 19:26:11 +08:00
2026-04-10 15:24:18 +08:00
2026-04-11 00:43:49 +08:00
2026-02-26 22:27:23 +08:00
2026-05-05 19:26:11 +08:00
2026-02-28 03:44:02 +08:00
2026-05-22 10:57:55 +08:00
2026-04-13 16:00:18 +08:00
2026-04-13 16:00:18 +08:00
2026-04-08 22:42:35 +08:00
2026-04-09 14:18:28 +08:00
2026-05-22 10:57:55 +08:00
2026-04-10 23:27:26 +08:00
2026-04-10 23:27:26 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-04-10 19:00:33 +08:00
2026-04-10 19:00:33 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-05-22 10:57:55 +08:00
2026-02-26 22:27:23 +08:00
2026-03-02 02:23:50 +08:00
2026-02-26 22:27:23 +08:00
2026-02-10 02:56:59 +08:00
2026-03-09 12:47:03 +08:00
2026-03-09 12:47:03 +08:00
2026-03-09 12:47:03 +08:00
2026-02-26 22:27:23 +08:00
2026-02-27 05:39:49 +08:00
2026-04-10 15:24:18 +08:00
2026-03-04 12:16:32 +08:00
2026-05-27 15:10:00 +08:00
2026-03-29 04:59:23 +08:00
2026-03-03 16:08:11 +08:00
2026-03-18 22:35:02 +08:00
2026-03-18 22:35:02 +08:00
2026-04-10 15:24:18 +08:00
2026-05-21 14:49:11 +08:00
2026-04-08 18:35:36 +08:00
2026-05-20 15:42:53 +08:00
2026-04-08 10:59:13 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-04-10 15:24:18 +08:00
2026-02-27 05:39:49 +08:00
2026-05-21 14:49:11 +08:00
2026-02-21 21:12:51 +08:00
2026-02-25 07:02:54 +08:00
2026-04-10 16:50:08 +08:00
2026-05-21 14:49:11 +08:00
2026-04-08 21:55:32 +08:00
2026-05-22 10:57:55 +08:00
2026-05-22 11:29:01 +08:00
2026-05-20 15:42:53 +08:00
2026-05-11 21:34:38 +08:00
2026-05-11 21:34:38 +08:00
2026-05-30 19:23:12 +08:00
2026-05-22 01:00:54 +08:00
2026-02-26 22:27:23 +08:00
2026-04-07 17:26:37 +08:00
2026-05-22 01:00:54 +08:00
2026-05-22 01:00:54 +08:00
2026-04-14 20:41:56 +08:00
2026-04-14 20:41:56 +08:00
2026-04-09 03:50:28 +08:00
2026-04-09 03:50:28 +08:00
2026-04-09 03:50:28 +08:00
2026-05-21 14:49:11 +08:00
2026-05-20 15:42:53 +08:00
2026-05-21 14:49:11 +08:00
2026-04-08 20:52:29 +08:00
2026-04-10 15:24:18 +08:00
2026-05-21 14:49:11 +08:00
2026-04-10 15:24:18 +08:00
2026-03-04 12:16:32 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-04-08 20:57:44 +08:00
2026-05-20 17:09:24 +08:00
2026-03-02 02:23:50 +08:00
2026-05-21 14:49:11 +08:00
2026-05-05 18:54:45 +08:00
2026-02-26 22:27:23 +08:00
2026-04-08 16:35:27 +08:00
2026-05-23 01:18:38 +08:00
2026-05-12 21:10:08 +08:00
2026-04-08 15:00:22 +08:00
2026-04-08 15:00:22 +08:00
2026-05-21 14:49:11 +08:00
2026-03-29 05:14:35 +08:00
2026-03-29 05:14:35 +08:00
2026-03-29 05:14:35 +08:00
2026-05-21 14:49:11 +08:00