stable

Clone or download

Read-only

Fixes request #29617: Avoid hard crashes when browsing to a Git repository with an invalid reference

Accessing `/plugins/git/<project_name>/<repo_name>?a=commit&h=invalid_ref` should not end up with a 500. Change-Id: Ieabdb61a89066a29a97df727cff4c4956a078191

Modified Files

Name
M plugins/git/include/Git/Repository/View/FilesHeaderPresenterBuilder.php +1 −1 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blame.php +6 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blob.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Blobdiff.php +9 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Commit.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Commitdiff.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_History.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Log.php +5 −1 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Search.php +3 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Snapshot.php +4 −0 Go to diff View file
M plugins/git/include/GitPHP/controller/Controller_Tag.php +6 −0 Go to diff View file