Mark Commit persisted

Rémy Coutable requested to merge pmq20/gitlab-ce-psvr/persisted into master

Originally opened at !3780 (closed) by @pmq20.

What does this MR do?

Mark commit as persisted so that polymorphic_url of Rails could correctly generate a url for namespaced project commit actions. For specific reasons in which this is needed, cf,

Are there points in the code the reviewer needs to double check?

This is a global change to all Commit objects which might introduce reactions in other parts of the program.

Why was this MR needed?

This allows us to make use of polymorphic routes instead of using Kernel.send.

Does this MR meet the acceptance criteria?

Merge request reports