Ignore existing git repo on disk when creating projects in the DB

This commit is contained in:
Pierre-Yves Chibon 2017-02-13 12:04:01 +01:00
parent 4bef4bb936
commit 25e0669aed

View file

@ -155,6 +155,7 @@ def update_owners_to_db(namespace, pkg, owners):
docfolder=pagure.APP.config['DOCS_FOLDER'],
ticketfolder=pagure.APP.config['TICKETS_FOLDER'],
requestfolder=pagure.APP.config['REQUESTS_FOLDER'],
ignore_existing_repo=True,
)
SESSION.commit()
flag = False
@ -220,6 +221,7 @@ def update_groups_to_db(namespace, pkg, pkg_groups):
docfolder=pagure.APP.config['DOCS_FOLDER'],
ticketfolder=pagure.APP.config['TICKETS_FOLDER'],
requestfolder=pagure.APP.config['REQUESTS_FOLDER'],
ignore_existing_repo=True,
)
SESSION.commit()
flag = False