Show More
@@ -68,8 +68,10 b' class RepoCompareView(RepoAppView):' | |||||
68 | return repo.scm_instance().EMPTY_COMMIT |
|
68 | return repo.scm_instance().EMPTY_COMMIT | |
69 | h.flash(h.literal(_('There are no commits yet')), |
|
69 | h.flash(h.literal(_('There are no commits yet')), | |
70 | category='warning') |
|
70 | category='warning') | |
71 | raise HTTPFound( |
|
71 | if not partial: | |
72 | h.route_path('repo_summary', repo_name=repo.repo_name)) |
|
72 | raise HTTPFound( | |
|
73 | h.route_path('repo_summary', repo_name=repo.repo_name)) | |||
|
74 | raise HTTPBadRequest() | |||
73 |
|
75 | |||
74 | except RepositoryError as e: |
|
76 | except RepositoryError as e: | |
75 | log.exception(safe_str(e)) |
|
77 | log.exception(safe_str(e)) |
General Comments 0
You need to be logged in to leave comments.
Login now