Files
@ e8565d50d064
Branch filter:
Location: kallithea/scripts/whitespacecleanup.sh
e8565d50d064
1.4 KiB
text/x-sh
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.