From af9e9f5fbe718a6e218a98e176e7d42fc7f945f3 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 29 Oct 2020 12:03:33 +0100
Subject: [PATCH] chore: more git.silent(true) removal

---
 lib/util/git/index.spec.ts | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/lib/util/git/index.spec.ts b/lib/util/git/index.spec.ts
index c00b3eb2d3..6a5311fc7d 100644
--- a/lib/util/git/index.spec.ts
+++ b/lib/util/git/index.spec.ts
@@ -14,7 +14,7 @@ describe('platform/git', () => {
 
   beforeAll(async () => {
     base = await tmp.dir({ unsafeCleanup: true });
-    const repo = Git(base.path).silent(true);
+    const repo = Git(base.path);
     await repo.init();
     defaultBranch = (await repo.raw('branch', '--show-current')).trim();
     await repo.addConfig('user.email', 'Jest@example.com');
@@ -97,7 +97,7 @@ describe('platform/git', () => {
       expect(await git.getFileList()).toMatchSnapshot();
     });
     it('should exclude submodules', async () => {
-      const repo = Git(base.path).silent(true);
+      const repo = Git(base.path);
       await repo.submoduleAdd(base.path, 'submodule');
       await repo.commit('Add submodule');
       await git.initRepo({
@@ -348,7 +348,7 @@ describe('platform/git', () => {
 
   describe('initRepo())', () => {
     it('should fetch latest', async () => {
-      const repo = Git(base.path).silent(true);
+      const repo = Git(base.path);
       await repo.checkout(['-b', 'test', defaultBranch]);
       await fs.writeFile(base.path + '/test', 'lorem ipsum');
       await repo.add(['test']);
@@ -376,7 +376,7 @@ describe('platform/git', () => {
     });
 
     it('should set branch prefix', async () => {
-      const repo = Git(base.path).silent(true);
+      const repo = Git(base.path);
       await repo.checkout(['-b', 'renovate/test', defaultBranch]);
       await fs.writeFile(base.path + '/test', 'lorem ipsum');
       await repo.add(['test']);
@@ -404,7 +404,7 @@ describe('platform/git', () => {
     });
 
     it('should fail clone ssh submodule', async () => {
-      const repo = Git(base.path).silent(true);
+      const repo = Git(base.path);
       await fs.writeFile(
         base.path + '/.gitmodules',
         '[submodule "test"]\npath=test\nurl=ssh://0.0.0.0'
@@ -439,7 +439,7 @@ describe('platform/git', () => {
       });
       git.getBranchCommit(defaultBranch);
       await git.syncGit();
-      const repo = Git(tmpDir.path).silent(true);
+      const repo = Git(tmpDir.path);
       const res = (await repo.raw(['config', 'extra.clone.config'])).trim();
       expect(res).toBe('test-extra-config-value');
     });
-- 
GitLab