fileSystem.dispose();
try {
if ( System.getProperty( "os.name" ).toLowerCase().contains( "windows" ) ) {
//this operation forces a cache clean freeing any lock -> windows only issue!
WindowCache.reconfigure( new WindowCacheConfig() );
}
FileUtils.delete( gitDir, FileUtils.RECURSIVE | FileUtils.RETRY );
return true;
} catch ( java.io.IOException e ) {
throw new IOException( e );