Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/__test__/git-auth-helper.test.ts
diff options
context:
space:
mode:
authorSKi <megamanics@users.noreply.github.com>2023-04-14 03:26:47 -0700
committerGitHub <noreply@github.com>2023-04-14 06:26:47 -0400
commit0023cf10d2f41d4eddfd3d6ad7ad99a1152ef708 (patch)
tree54997dba50eeec3cbc1e3119122ed65b062042b2 /__test__/git-auth-helper.test.ts
parent72a27d858e989e4f80fdb9a9747ee908f946c62e (diff)
Fix: Checkout fail in self-hosted runners when faulty submodule are checked-in (#1196)
* Fix Self hosted runner issue wrt bad submodules - solution cleanup working space. * Fix format with npm run format output * Add mock implementation for new function submoduleStatus * Add 2 test cases for submodule status. * Codeql-Action Analyse revert v1 to v2 --------- Co-authored-by: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Co-authored-by: sminnie <minnie@sankhe.com>
Diffstat (limited to '__test__/git-auth-helper.test.ts')
-rw-r--r--__test__/git-auth-helper.test.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/__test__/git-auth-helper.test.ts b/__test__/git-auth-helper.test.ts
index 2acec38..b58010b 100644
--- a/__test__/git-auth-helper.test.ts
+++ b/__test__/git-auth-helper.test.ts
@@ -770,6 +770,9 @@ async function setup(testName: string): Promise<void> {
return ''
}),
submoduleSync: jest.fn(),
+ submoduleStatus: jest.fn(async () => {
+ return true
+ }),
submoduleUpdate: jest.fn(),
tagExists: jest.fn(),
tryClean: jest.fn(),