Skip to content

Commit ab30700

Browse files
committed
Attempt two at fixing the git related commands
1 parent 6bc8dc9 commit ab30700

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

test/function.test.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -816,12 +816,16 @@ async function copyWorkspaceToTemp(
816816
const gitPath = path.join(tempDir, workspace);
817817
await execAsync('git init', { cwd: gitPath });
818818
await execAsync('git add .', { cwd: gitPath });
819-
await execAsync(
820-
'git commit --author "Testy McTestface <test@example.com>" -m "commit for test purposes"',
821-
{
822-
cwd: gitPath,
823-
},
824-
);
819+
await execAsync('git config user.email "test@example.com"', {
820+
cwd: gitPath,
821+
});
822+
await execAsync('git config user.name "Testy McTestface"', {
823+
cwd: gitPath,
824+
});
825+
826+
await execAsync('git commit -m "commit for test purposes"', {
827+
cwd: gitPath,
828+
});
825829
}
826830
return tempDir;
827831
}

0 commit comments

Comments
 (0)