From 61c53e4755d8216c75544620b17c50921afa01a9 Mon Sep 17 00:00:00 2001
From: Tim Jacomb <t.jacomb@kainos.com>
Date: Fri, 22 Nov 2019 17:16:57 +0000
Subject: [PATCH] chore: Add git config to test (#4853)

I use `useConfigOnly = true` so that I ensure I always commit with the
right email to each repo, the tests in this repo assume that global
config is set for name and email.

This is a simple fix that allows me and possibly others to run the test
suite
---
 test/platform/git/storage.spec.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/platform/git/storage.spec.ts b/test/platform/git/storage.spec.ts
index 62a4f45a24..e4dfefbb6c 100644
--- a/test/platform/git/storage.spec.ts
+++ b/test/platform/git/storage.spec.ts
@@ -15,6 +15,8 @@ describe('platform/git/storage', () => {
     base = await tmp.dir({ unsafeCleanup: true });
     const repo = Git(base.path).silent(true);
     await repo.init();
+    await repo.addConfig('user.email', 'Jest@example.com');
+    await repo.addConfig('user.name', 'Jest');
     await fs.writeFile(base.path + '/past_file', 'past');
     await repo.add(['past_file']);
     await repo.commit('past message');
-- 
GitLab