cli: git sync improvements v2 (#6220)

* log when override is applied vs default taken in git sync

* simplify cli merging options + add explicit override test

* gitsync-settings pull/push ask for confirmation or --yes if tty

* cli legacy backend repo setting detected + interactive migration
This commit is contained in:
Alexander Petric
2025-07-17 22:14:40 +00:00
committed by GitHub
parent 08f640eda0
commit e34e42b436
9 changed files with 433 additions and 167 deletions
+3 -3
View File
@@ -126,8 +126,8 @@ Deno.test("Init: --use-backend flag applies git-sync settings", async () => {
assertStringIncludes(wmillYaml, "*.test.ts", "Should include backend's exclude_path");
assertStringIncludes(wmillYaml, "g/**", "Should include backend's extra_include_path");
// Should NOT have overrides section since we're starting fresh
assertEquals(wmillYaml.includes("overrides:"), false, "Init should not create overrides section");
// Should have empty overrides section for consistency
assertStringIncludes(wmillYaml, "overrides: {}");
});
});
@@ -180,6 +180,6 @@ Deno.test("Init: --use-default bypasses backend settings check", async () => {
// Should NOT have backend-specific settings
assertEquals(wmillYaml.includes("f/should-be-ignored/**"), false, "Should not include backend settings");
assertEquals(wmillYaml.includes("overrides:"), false, "Should not create overrides when using defaults");
assertStringIncludes(wmillYaml, "overrides: {}", "Should have empty overrides section for consistency");
});
});