fixing the sync options

This commit is contained in:
vladimirhasko 2023-01-29 20:54:48 +00:00
parent d5d68b0d01
commit 031e08d1c7

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.")