Skip to content

Commit 0afc309

Browse files
committed
setup credentials
1 parent 8ea58df commit 0afc309

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/test/integration/git.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,24 @@ const makeFileChanges = async (
187187

188188
// Use native git CLI for symlink commit - isomorphic-git has inconsistent
189189
// oid calculation between git.add/commit and WORKDIR walker for symlinks
190+
// First configure git user for CI environment
191+
await new Promise<void>((resolve) => {
192+
execFile(
193+
"git",
194+
["config", "user.email", "test@test.com"],
195+
{ cwd: repoDirectory },
196+
() => resolve(),
197+
);
198+
});
199+
await new Promise<void>((resolve) => {
200+
execFile(
201+
"git",
202+
["config", "user.name", "Test"],
203+
{ cwd: repoDirectory },
204+
() => resolve(),
205+
);
206+
});
207+
190208
console.log("DEBUG: makeFileChanges - Running git add");
191209
await new Promise<void>((resolve, reject) => {
192210
execFile(

0 commit comments

Comments
 (0)