forked from infra/otc-metadata
fixing the sync options
This commit is contained in:
parent
d5d68b0d01
commit
031e08d1c7
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user