see: During upgrade to 3.3 email templates' stage_id is populated before being created · Issue #6284 · pkp/pkp-lib · GitHub
Just want to remind that the master branch is used for development purposes, this code isn’t complete and may be changed before the release. For using git, please see: Running production OJS site with Git for Dummies (like me)