Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): preserve spaces in Git remote URLs #34324

Mergedvoltcrash(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/34324/headmerged by maria-rcks View on GitHub

Showing 4 changed files with 106 additions and 36 deletions (loading 1).

x
0 of 4 viewed, 4 left
48 additions and 29 deletionsapps/server/src/vcs/GitVcsDriver.test.tsModified
View file
@@ -102,35 +102,54 @@
});
​
-it.effect("lists the fetch and push URLs of a partial clone remote", () =>
- Effect.gen(function* () {
- const fileSystem = yield* FileSystem.FileSystem;
- const cwd = yield* fileSystem.makeTempDirectoryScoped({
- prefix: "t3-partial-clone-remotes-",
- });
- const driver = yield* GitVcsDriver.makeVcsDriverShape();
- yield* runGit(cwd, ["init"]);
- yield* runGit(cwd, ["remote", "add", "origin", "https://github.com/pingdotgg/t3code.git"]);
- yield* runGit(cwd, [
- "remote",
- "set-url",
- "--push",
- "origin",
- "git@github.com:octocat/t3code.git",
- ]);
- yield* runGit(cwd, ["config", "remote.origin.promisor", "true"]);
- yield* runGit(cwd, ["config", "remote.origin.partialclonefilter", "blob:none"]);
-​
- const result = yield* driver.listRemotes(cwd);
- assert.deepEqual(result.remotes, [
- {
- name: "origin",
- url: "https://github.com/pingdotgg/t3code.git",
- pushUrl: Option.some("git@github.com:octocat/t3code.git"),
- isPrimary: true,