From d6fb55bec3b4d999f944816e2b611147abaea60d Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 11 Aug 2020 09:32:13 +0200 Subject: [PATCH] fix(git): loosen git clone no space detection --- lib/util/git/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util/git/index.ts b/lib/util/git/index.ts index 0a6536d6b9..302465615e 100644 --- a/lib/util/git/index.ts +++ b/lib/util/git/index.ts @@ -193,7 +193,7 @@ export async function syncGit(): Promise<void> { await git.clone(config.url, '.', opts); } catch (err) /* istanbul ignore next */ { logger.debug({ err }, 'git clone error'); - if (err.message?.includes('write error: No space left on device')) { + if (err.message?.includes('No space left on device')) { throw new Error(SYSTEM_INSUFFICIENT_DISK_SPACE); } throw new ExternalHostError(err, 'git'); -- GitLab