From 7834240b67c8204468b9b67b2b91a42fd26e0672 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish Date: Tue, 24 Jun 2014 08:28:52 +1000 Subject: [PATCH] Move cache to install directory, fixes #4 --- .gitignore | 1 + lib/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2ccbe465..6e84d4bc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /node_modules/ +/.cache/ diff --git a/lib/index.js b/lib/index.js index d962af40..8b6db908 100644 --- a/lib/index.js +++ b/lib/index.js @@ -11,7 +11,7 @@ var git = require('./git'); var copy = require('./util').copy; function getCacheDir() { - return '.gh-pages'; + return path.relative(process.cwd(), path.resolve(__dirname, '../.cache')); } function getRemoteUrl(dir, remote) {