Closed dalehenrich closed 9 years ago
This problem should be fixed ... we can unconditionally clear the directory entry if an error occurs ...
Proposed fix to MCGitBasedNetworkRepository >> flushCache:
flushCache
"the directory acts like a cache since we download the directory from a git-based repository (github, bitbucket, etc.)"
[super flushCache] on: Error do: [:ignored | "perhaps dump something to Transcript?" ].
self class flushDownloadCache.
directory := nil
Mariano suggests logging to Transcript:
flushCache
"the directory acts like a cache since we download the directory from a git-based repository (github, bitbucket, etc.)"
[ super flushCache ]
on: Error
do: [ :ex |
Transcript
cr;
show:
'Error for: ' , self description printString , ' during flushCache: '
, ex description printString ].
self class flushDownloadCache.
directory := nil
Related to Issue #375.
From Mariano: