fix(coding-agent): fix git-update test using unparseable git source

The test used 'github.com/test/extension' as the git source, but
parseGitUrl() requires a 'git:' prefix for bare hostnames. Changed
to 'git:github.com/test/extension' so the source is correctly
parsed as a git type and update() actually runs.
This commit is contained in:
Mario Zechner 2026-02-22 14:57:58 +01:00
parent 21141e0040
commit 316c2afe38

View file

@ -53,8 +53,10 @@ describe("DefaultPackageManager git update", () => {
let settingsManager: SettingsManager;
let packageManager: DefaultPackageManager;
// Git source that maps to our installed directory structure
const gitSource = "github.com/test/extension";
// Git source that maps to our installed directory structure.
// Must use "git:" prefix so parseSource() treats it as a git source
// (bare "github.com/..." is not recognized as a git URL).
const gitSource = "git:github.com/test/extension";
beforeEach(() => {
tempDir = join(tmpdir(), `git-update-test-${Date.now()}-${Math.random().toString(36).slice(2)}`);