Skip to content
Merged
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
4 changes: 4 additions & 0 deletions src/shared/repository/git.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ beforeAll(async () => {
nonRepoDir = join(root, "plain");
await $`mkdir -p ${repoDir} ${nestedDir} ${nonRepoDir}`.quiet();
await $`git -C ${repoDir} init -q -b main`.quiet();
// Set identity locally on this test repo so `git commit` works on CI
// runners that don't have a global user.email/user.name configured.
await $`git -C ${repoDir} config user.email test@bbcli.local`.quiet();
await $`git -C ${repoDir} config user.name Test`.quiet();
await $`git -C ${repoDir} remote add origin git@bitbucket.org:acme/widgets.git`.quiet();
await $`git -C ${repoDir} remote add upstream https://bitbucket.org/other/widgets.git`.quiet();
});
Expand Down
Loading