fixing the sync options
All checks were successful
gl/check check status: success (031e08d1c7897fa1f373445ac2eaf41c7b57cc06)
gl/gate gate status: success (031e08d1c7897fa1f373445ac2eaf41c7b57cc06)

This commit is contained in:
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.")