From d5afbb0698b0e10c7991d6d4a9675f105c89abad Mon Sep 17 00:00:00 2001
From: Gonzalo Peci <pecigonzalo@users.noreply.github.com>
Date: Thu, 14 Dec 2023 15:49:57 +0100
Subject: [PATCH] Set config as global

---
 src/git-source-provider.ts | 5 +++--
 src/input-helper.ts        | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts
index 71fb418..f80d560 100644
--- a/src/git-source-provider.ts
+++ b/src/git-source-provider.ts
@@ -153,7 +153,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
 
     // Fetch
     core.startGroup('Fetching the repository')
-    await git.config('fetch.parallel', settings.fetchParallel.toString())
+    await git.config('fetch.parallel', settings.fetchParallel.toString(), true)
     const fetchOptions: {
       filter?: string
       fetchDepth?: number
@@ -235,7 +235,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
       core.startGroup('Fetching submodules')
       await git.config(
         'submodule.fetchJobs',
-        settings.submodulesFetchJobs.toString()
+        settings.submodulesFetchJobs.toString(),
+        true
       )
       await git.submoduleSync(settings.nestedSubmodules)
       await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules)
diff --git a/src/input-helper.ts b/src/input-helper.ts
index 6acd28f..76839d9 100644
--- a/src/input-helper.ts
+++ b/src/input-helper.ts
@@ -3,7 +3,7 @@ import * as fsHelper from './fs-helper'
 import * as github from '@actions/github'
 import * as path from 'path'
 import * as workflowContextHelper from './workflow-context-helper'
-import { IGitSourceSettings } from './git-source-settings'
+import {IGitSourceSettings} from './git-source-settings'
 
 export async function getInputs(): Promise<IGitSourceSettings> {
   const result = ({} as unknown) as IGitSourceSettings