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.
OLD_VIEW_COMMIT_ENABLED = True
prevent_40_chars
True
if len(second_part) == 40 and not prevent_40_chars
False
Good point and the tests should have made it obvious...
Let me fix that
1 new commit added
rebased
:thumbsup:
Thanks
Pull-Request has been merged by pingou
Newer pagure instances do not need this restriction