#1901 Add a feature to ignore existing git repo on disk
Merged by pingou. Opened by pingou.
ignore_existing  into  master

Download 1901.patch

In the traditional use of pagure, if a repo exists on disk we want to not
create the project, but when using pagure as a front-end for a system
that handles creating the project on disk via a different process, in that
situation we want to be able to create the project in the DB while ignoring
the fact that there is/are already git repos on disk.

The flag ignore_existing_repo added to pagure.lib.new_project() will
allow that.

Add corresponding tests

rebased

:thumbsup:

Personally, I'd break that test off into its own test case, but that's not a blocker. Both the change and the test look good :thumbsup:.

The nature of the change and the impact it has is such that I want to proceed as is, however, I have made a ticket to track this piece of debt that we will have to re-pay one day: https://pagure.io/pagure/issue/1903 :)

Thanks for the reviews !!

Pull-Request has been merged by pingou

Metadata