git-off

git off handles large files in git repos
git clone https://noulin.net/git/git-off.git
Log | Files | Refs | README

commit ddc6c3cf8b05c4f1c3adcb8c95cd7eabd2e1803f
parent b39122164a6531ed2ce655246dbbfe6b8485bc27
Author: Remy Noulin <loader2x@gmail.com>
Date:   Sun, 18 Dec 2016 16:50:18 +0100

fix delete cache

src/gitoff.coffee | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Diffstat:
Msrc/git-off | 4++--
Msrc/gitoff.coffee | 4++--
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/git-off b/src/git-off @@ -1082,11 +1082,11 @@ offCommands = { }, 'clearAll': function() { offCommands.clearStore(); - rmAll(offHelpers.objectPath()); + offCommands.clearCache(); rmAll(offHelpers.getLog()); }, 'clearCache': function() { - rmAll(offHelpers.objectPath()); + rmAll(offHelpers.gitRepoRoot() + '/.git/off'); }, 'clearStore': function() { if (offHelpers.offMode() === 'copy') { diff --git a/src/gitoff.coffee b/src/gitoff.coffee @@ -1202,13 +1202,13 @@ offCommands = 'clearAll': -> # delete store, cache in current git and log offCommands.clearStore() - rmAll offHelpers.objectPath() + offCommands.clearCache() rmAll offHelpers.getLog() return 'clearCache': -> # delete cache in current git - rmAll offHelpers.objectPath() + rmAll offHelpers.gitRepoRoot()+'/.git/off' return 'clearStore': ->