diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts index 00bf651fb4b86f94b7e7298dc13cc1f5546cb3a8..aa1d0b67d5e1d0c6493813356f075122e48f0007 100644 --- a/lib/platform/git/storage.ts +++ b/lib/platform/git/storage.ts @@ -8,6 +8,7 @@ import { REPOSITORY_CHANGED, REPOSITORY_EMPTY, REPOSITORY_TEMPORARY_ERROR, + SYSTEM_INSUFFICIENT_DISK_SPACE, } from '../../constants/error-messages'; import { logger } from '../../logger'; import * as limits from '../../workers/global/limits'; @@ -168,6 +169,9 @@ export class Storage { await this._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')) { + throw new Error(SYSTEM_INSUFFICIENT_DISK_SPACE); + } throw new Error(PLATFORM_FAILURE); } const durationMs = Math.round(Date.now() - cloneStart);