#1125 Add the possibility to create projects with names of 40 chars length
Merged by pingou. Opened by pingou.
allow_40_chars  into  master

Download 1125.patch

Newer pagure instances do not need this restriction

thanks for doing my part of the job :grin: :thumbsup:

I had a look later and i think this is doing exact opposite of what's required.
When OLD_VIEW_COMMIT_ENABLED = True, then the project with 40 chars after '/' shouldn't be created. But, according to this: prevent_40_chars will get the value True here and if len(second_part) == 40 and not prevent_40_chars will evaluate to False here thus, the exception won't be raised.

Good point and the tests should have made it obvious...

Let me fix that

1 new commit added

  • Invert the logic around prevent_40_chars to actually do what we want

rebased

:thumbsup:

Pull-Request has been merged by pingou

Metadata