Replacing shutil copytree by dirsync #25

Merged
zuul merged 5 commits from dirsync_replaces__shutil into main 2023-01-30 07:52:19 +00:00
2 changed files with 15 additions and 6 deletions
Showing only changes of commit 031e08d1c7 - Show all commits

View File

@ -119,9 +119,13 @@ def process_repositories(args, service):
'sync',
purge=True,
create=True,
content=True,
ignore=['conf.py']
)
repo_to.index.add([doc["rst_location"]])
for obj in repo_to.index.diff(None).iter_change_type('D'):
repo_to.index.remove([obj.b_path])
if len(repo_to.index.diff("HEAD")) == 0:
# Nothing to commit
logging.debug("No changes.")