Don't crash when project repository doesn't exist.
This commit is contained in:
parent
ac5af61499
commit
36b54fc04f
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
Please view this file on the master branch, on stable branches it's out of date.
|
||||
|
||||
v 7.10.0 (unreleased)
|
||||
- Don't crash when project repository doesn't exist.
|
||||
- Fix broken file browsing with a submodule that contains a relative link (Stan Hu)
|
||||
- Fix persistent XSS vulnerability around profile website URLs.
|
||||
- Fix project import URL regex to prevent arbitary local repos from being imported.
|
||||
|
|
|
@ -126,7 +126,7 @@ class ApplicationController < ActionController::Base
|
|||
|
||||
def repository
|
||||
@repository ||= project.repository
|
||||
rescue Grit::NoSuchPathError(e)
|
||||
rescue Grit::NoSuchPathError => e
|
||||
log_exception(e)
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue