See https://gitlab.com/gitlab-org/gitlab-ee/issues/149 See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1396/