Changeset - e8565d50d064
default
0
1
0
compare: ensure that repositories exist before proceeding
The index method on CompareController did not verify that other_repo
existed, causing a rendering error if it wasn't.
Since neither controller method can proceed if either repository is
non-existent, check existence and load Repository objects in __before__.
Also perform type compatibility check up front while we're at it, remove
redundant repository database lookups, and enable error message i18n.
The index method on CompareController did not verify that other_repo
existed, causing a rendering error if it wasn't.
Since neither controller method can proceed if either repository is
non-existent, check existence and load Repository objects in __before__.
Also perform type compatibility check up front while we're at it, remove
redundant repository database lookups, and enable error message i18n.
1 file changed with 32 insertions and 37 deletions:
0 comments (0 inline, 0 general)
0 comments (0 inline, 0 general)