diff --git a/openhsr_connect/sync.py b/openhsr_connect/sync.py index 0170a9a..28362b7 100644 --- a/openhsr_connect/sync.py +++ b/openhsr_connect/sync.py @@ -207,10 +207,10 @@ def sync(self): self.logger.info('Starting sync: %s -> %s' % (source, destination)) excludes = self.config['sync']['global-exclude'] + repository['exclude'] self.logger.info('The following patterns will be excluded: %s' % (excludes)) - cache_file = '%s/.%s.json' % (destination, name) + cache_file = os.path.join(destination, '.openhsr-%s.json' % name) cache = self.load_cache(cache_file) self.sync_tree(name, source, destination, '', excludes, cache) self.dump_cache(cache_file, cache) self.logger.info("Sync of %s completed" % name) - self.dispose() \ No newline at end of file + self.dispose()