Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ async function createTempGitRepo(): Promise<string> {
stdio: "pipe",
});
execSync("git config user.name 'Test'", { cwd: dir, stdio: "pipe" });
execSync("git config commit.gpgsign false", { cwd: dir, stdio: "pipe" });
await fs.writeFile(path.join(dir, "README.md"), "# Test Repo");
execSync("git add . && git commit -m 'Initial commit'", {
cwd: dir,
Expand Down
1 change: 1 addition & 0 deletions packages/agent/src/sagas/test-fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export async function createTestRepo(prefix = "test-repo"): Promise<TestRepo> {
await git(["init"]);
await git(["config", "user.email", "test@test.com"]);
await git(["config", "user.name", "Test"]);
await git(["config", "commit.gpgsign", "false"]);

await writeFile(join(repoPath, ".gitignore"), ".posthog/\n");
await writeFile(join(repoPath, "README.md"), "# Test Repo");
Expand Down
1 change: 1 addition & 0 deletions packages/agent/src/test/fixtures/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export async function createTestRepo(prefix = "test-repo"): Promise<TestRepo> {
await git(["init"]);
await git(["config", "user.email", "test@test.com"]);
await git(["config", "user.name", "Test"]);
await git(["config", "commit.gpgsign", "false"]);

await writeFile(join(repoPath, ".gitignore"), ".posthog/\n");
await writeFile(join(repoPath, "README.md"), "# Test Repo");
Expand Down
1 change: 1 addition & 0 deletions packages/git/src/queries.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function setupRepo(defaultBranch = "main"): Promise<string> {
await git.init(["--initial-branch", defaultBranch]);
await git.addConfig("user.name", "Test");
await git.addConfig("user.email", "test@example.com");
await git.addConfig("commit.gpgsign", "false");
await writeFile(path.join(dir, "file.txt"), "content\n");
await git.add(["file.txt"]);
await git.commit("initial");
Expand Down
2 changes: 2 additions & 0 deletions packages/git/src/sagas/checkpoint.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ async function setupRepo(): Promise<string> {
await git.init();
await git.addConfig("user.name", "PostHog Code Test");
await git.addConfig("user.email", "posthog-code-test@example.com");
await git.addConfig("commit.gpgsign", "false");

await writeFile(path.join(dir, "a.txt"), "one\n");
await writeFile(path.join(dir, "b.txt"), "base\n");
Expand Down Expand Up @@ -258,6 +259,7 @@ describe("checkpoint sagas", () => {
await subGit.init();
await subGit.addConfig("user.name", "PostHog Code Test");
await subGit.addConfig("user.email", "posthog-code-test@example.com");
await subGit.addConfig("commit.gpgsign", "false");
await writeFile(path.join(subRepo, "sub.txt"), "sub\n");
await subGit.add(["sub.txt"]);
await subGit.commit("sub-init");
Expand Down
Loading