Gitlab: handle payload without JSON data
We have a Mantis installation managing projects under SVN, Git with
Gitweb, and now we are installing a Gitlab server.

Problem is the old Git server is using a hook to send POST data not in
JSON format, and this screws the Gitlab plugin, that bypass all other
plugins and try to retrieve changeset from the first repository matching
null repoid (which is the first repo in mantis database, a SVN repo)

Resolving issue by adding a check for null data after the check for empy
payload.

Fixes #121

Original commit message reformatted and reworded

Signed-off-by: Damien Regad <dregad@mantisbt.org>
1 parent 7d931f1 commit f9953b4eb41b4999c3aa00229f942a518c675b6c
@Sébastien Rombauts Sébastien Rombauts authored on 20 Apr 2015
Damien Regad committed on 12 Sep 2015
Showing 1 changed file
View
SourceGitlab/SourceGitlab.php