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',
|
'sync',
|
||||||
purge=True,
|
purge=True,
|
||||||
create=True,
|
create=True,
|
||||||
|
content=True,
|
||||||
ignore=['conf.py']
|
ignore=['conf.py']
|
||||||
)
|
)
|
||||||
repo_to.index.add([doc["rst_location"]])
|
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:
|
if len(repo_to.index.diff("HEAD")) == 0:
|
||||||
# Nothing to commit
|
# Nothing to commit
|
||||||
logging.debug("No changes.")
|
logging.debug("No changes.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user