From 7b0153cc67b5dc2ce36d66431da50ca673ebece1 Mon Sep 17 00:00:00 2001 From: Adrian-Grimm Date: Wed, 25 Mar 2020 02:54:24 +0100 Subject: [PATCH 1/2] quick-fix for yarn2 git clone zip target EROFS - issue #343 --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 87d5c1d8..bb5b5230 100644 --- a/lib/index.js +++ b/lib/index.js @@ -10,7 +10,7 @@ const util = require('util'); const log = util.debuglog('gh-pages'); function getCacheDir() { - return path.relative(process.cwd(), path.resolve(__dirname, '../.cache')); + return path.relative(process.cwd(), '.cache/git_sync_tmp'); } function getRepo(options) { From fa7e783e6fccd45e015647d4fc6500f1aa3fed65 Mon Sep 17 00:00:00 2001 From: Adrian-Grimm Date: Wed, 25 Mar 2020 03:17:33 +0100 Subject: [PATCH 2/2] cleanup to issue #343 --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index bb5b5230..31773b81 100644 --- a/lib/index.js +++ b/lib/index.js @@ -10,7 +10,7 @@ const util = require('util'); const log = util.debuglog('gh-pages'); function getCacheDir() { - return path.relative(process.cwd(), '.cache/git_sync_tmp'); + return path.relative(process.cwd(), '.cache/git'); } function getRepo(options) {