Skip to content
Snippets Groups Projects
Commit d6fb55be authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(git): loosen git clone no space detection

parent 9bb0a6c8
No related branches found
No related tags found
No related merge requests found
...@@ -193,7 +193,7 @@ export async function syncGit(): Promise<void> { ...@@ -193,7 +193,7 @@ export async function syncGit(): Promise<void> {
await git.clone(config.url, '.', opts); await git.clone(config.url, '.', opts);
} catch (err) /* istanbul ignore next */ { } catch (err) /* istanbul ignore next */ {
logger.debug({ err }, 'git clone error'); 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 Error(SYSTEM_INSUFFICIENT_DISK_SPACE);
} }
throw new ExternalHostError(err, 'git'); throw new ExternalHostError(err, 'git');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment